Couldn't send email to user

Bug #795589 reported by Michael Wuttke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Expired
Medium
Unassigned

Bug Description

Mahara v1.4rc4
Linux 2.6.26-2
PHP 5.2.6
Apache-Server 2.2.9
Postgresql-Server 8.4

The mahara-installation can not send any emails, see the output of the notifications:
---
exception 'EmailException' with message 'Couldn't send email to user with subject Mahara: ... Error from phpmailer was: SMTP Error: Could not authenticate.' in /var/www/mahara/lib/user.php:457
Stack trace:
#0 /var/www/mahara/notification/email/lib.php(97): email_user(Object(stdClass), NULL, 'Mahara', '...', NULL, NULL)
#1 [internal function]: PluginNotificationEmail::notify_user(Object(stdClass), Object(stdClass))
#2 /var/www/mahara/lib/mahara.php(1184): call_user_func_array(Array, Array)
#3 /var/www/mahara/lib/activity.php(462): call_static_method('PluginNotificat...', 'notify_user', Object(stdClass), Object(stdClass))
#4 /var/www/mahara/lib/activity.php(489): ActivityType->notify_user(Object(stdClass))
#5 /var/www/mahara/lib/activity.php(82): ActivityType->notify_users()
#6 /var/www/mahara/lib/activity.php(50): handle_activity(Object(stdClass), Object(stdClass))
#7 /var/www/mahara/lib/institution.php(289): activity_occurred('institutionmess...', Object(stdClass))
#8 /var/www/mahara/admin/users/institutionusers.php(203): Institution->inviteUser(9)
#9 [internal function]: institutionusers_submit(Object(Pieform), Array)
#10 /var/www/mahara/lib/pieforms/pieform.php(512): call_user_func_array('institutionuser...', Array)
#11 /var/www/mahara/lib/pieforms/pieform.php(161): Pieform->__construct(Array)
#12 /var/www/mahara/lib/pieforms/pieform.php(71): Pieform::process(Array)
#13 /var/www/mahara/admin/users/institutionusers.php(143): pieform(Array)
#14 {main}
---

Is it a bug or a miss-configuration of the server?

Thank`s and glad about any answers.
michael

Changed in mahara:
status: New → Invalid
Revision history for this message
Ruslan Kabalin (rkabalin) wrote :

Hello wuttke,

It looks like misconfiguration for me, I have just tested messaging on 1.4_STABLE and it works fine. Check that you have specified correct credentials in Configure Site -> Site options. I guess you get that output from the admin message?

Revision history for this message
François Marier (fmarier) wrote :

Have a look at this page:

  https://wiki.mahara.org/index.php/System_Administrator's_Guide/Installing_Mahara/Troubleshooting

and search for the question that talks about SMTP.

Revision history for this message
Michael Wuttke (wuttke-berlin) wrote : Re: [Bug 795589] Re: Couldn't send email to user

Hello François,

I worked through the five points in Troubleshooting-Site wich talks
about the SMTP-error. But I couldn't find any misconfiguration, I think.
I have the same mail-configuration for moodle and it works without any
problems.

Is the reason maybe for the error that I am using https?

Thank you for your help,
michael

Am 12.06.2011 03:52, schrieb François Marier:
> Have a look at this page:
>
> https://wiki.mahara.org/index.php/System_Administrator's_Guide/Installing_Mahara/Troubleshooting
>
> and search for the question that talks about SMTP.
>

Revision history for this message
François Marier (fmarier) wrote :

Well, based on the error returned by PHP mailer, there is a problem talking to your mail server.

Can you paste here the mail configuration that you put in Mahara (minus any passwords or private info of course)?

In particular, are you using the right value (ssl or tls) for the smtpsecure parameter?

Changed in mahara:
status: Invalid → Incomplete
importance: Undecided → Medium
Revision history for this message
Michael Wuttke (wuttke-berlin) wrote :

Hello François,

here the mail configuration that I put in the mahara config.php:

$cfg->emailcontact = 'my-email-adress';
$cfg->smtphosts = 'my-smtp-mailout-server';
$cfg->smtpuser = 'my-user-name';
$cfg->smtppass = 'my-password';
$cfg->smtpport = 25;
$cfg->smtpsecure = '';

Thank you for the help!
michael

Revision history for this message
François Marier (fmarier) wrote :

Hi Michael,

Is that the same configuration that you use for Moodle? In particular, do you use SSL or TLS to connect to your mail server? Is it on port 25?

Cheers,
Francois

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mahara because there has been no activity for 60 days.]

Changed in mahara:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.