Forums | Mahara Community

Support /
Subject: User notification error was probably caused by your server configuration


anonymous profile picture
Account deleted
Posts: 1

16 June 2013, 6:59

We have a Marhara install and from time to time we get any thing from between 20 -100 of these message not every day and users get emails just fine 

 

exception 'EmailException' with message 'Couldn't send email to Debbie Smith
with subject Mahara: New page access. Error from phpmailer was: SMTP Error:
Data not accepted.<p>SMTP server error: </p>
' in /home/infosys/projects/mahara/public_html/lib/user.php:564
Stack trace:
#0 /home/infosys/projects/mahara/public_html/notification/email/lib.php(102):
email_user(Object(stdClass), NULL, 'Mahara: New pag...', 'You have been s...',
NULL, NULL)
#1 [internal function]: PluginNotificationEmail::notify_user(Object(stdClass),
Object(stdClass))
#2 /home/infosys/projects/mahara/public_html/lib/mahara.php(1339):
call_user_func_array(Array, Array)
#3 /home/infosys/projects/mahara/public_html/lib/activity.php(464):
call_static_method('PluginNotificat...', 'notify_user', Object(stdClass),
Object(stdClass))
#4 /home/infosys/projects/mahara/public_html/lib/activity.php(493):
ActivityType->notify_user(Object(stdClass))
#5 /home/infosys/projects/mahara/public_html/lib/activity.php(82):
ActivityType->notify_users()
#6 /home/infosys/projects/mahara/public_html/lib/activity.php(219):
handle_activity('4', Object(stdClass), true)
#7 /home/infosys/projects/mahara/public_html/lib/cron.php(158):
activity_process_queue()
#8 {main}

 

Where do you think the problem lies?

 

 

Aaron Wells's profile picture
Posts: 896

17 June 2013, 12:40

Hi Brian,

That's an error message from the phpmailer library, which is trying to send a DATA command to your SMTP server via the PHP function SMTP->Data on line 326 of lib/phpmailer/class.smtp.php . And for some reason that function is returning "false". Looking at the function, there are a few reasons it could return false, including that it couldn't connect to SMTP, that your server rejected the DATA command, or that your server responded with a response code other than 250.

Unfortunately, the "SMTP server error:" field is empty in the error stack you've received, so I can't really pin it down more than that. I'd suggest looking at your SMTP server's logs for errors on its side, maybe.

Cheers,
Aaron

25 March 2014, 20:48

We are getting the same message as well. There are no restrictions on the internal Exchange server, where would we start looking at ?

------------------------------------------------------ ---------------- 

exception 'EmailException' with message 'Couldn't send email to IIIII with subject PMACS ePortfolio: New friend request. Error from phpmailer was:

SMTP Error: Data not accepted.<p>SMTP server error: </p> ' in /home/mahara/public_html/lib/user.php:675

Stack trace:

#0 /home/mahara/public_html/notification/email/lib.php(102):

email_user(Object(stdClass), Object(stdClass), 'PMACS ePortfoli...', 'You have been s...', NULL, NULL)

#1 [internal function]: PluginNotificationEmail::notify_user(Object(stdClass),

Object(stdClass))

#2 /home/mahara/public_html/lib/mahara.php(1365): call_user_func_array(Array,

Array)

#3 /home/mahara/public_html/lib/activity.php(468):

call_static_method('PluginNotificat...', 'notify_user', Object(stdClass),

Object(stdClass))

#4 /home/mahara/public_html/lib/activity.php(507):

ActivityType->notify_user(Object(stdClass))

#5 /home/mahara/public_html/lib/activity.php(82): ActivityType->notify_users()

#6 /home/mahara/public_html/lib/activity.php(50):

handle_activity(Object(stdClass), Object(stdClass))

#7 /home/mahara/public_html/user/requestfriendship.php(119):

activity_occurred('maharamessage', Object(stdClass))

#8 [internal function]: requestfriendship_submit(Object(Pieform), Array)

#9 /home/mahara/public_html/lib/pieforms/pieform.php(514):

call_user_func_array('requestfriendsh...', Array)

#10 /home/mahara/public_html/lib/pieforms/pieform.php(161):

Pieform->__construct(Array)

#11 /home/mahara/public_html/lib/pieforms/pieform.php(71):

Pieform::process(Array)

#12 /home/mahara/public_html/user/requestfriendship.php(80): pieform(Array)

#13 {main}

 

Aaron Wells's profile picture
Posts: 896

26 March 2014, 12:16

Hi Ramu,

Exactly the same advice applies. The error from PHP doesn't provide enough detail to suggest what's wrong. If your Exchange server has any error logs, check those.

Unfortunately I know almost nothing about Microsoft Exchange, so I can't provide you with any help on that subject. Mahara uses the PHPMailer library. Googling "phpmailer data not accepted" I found this entry on stackexchange that suggests it might be a timeout issue. But I think you'd need to look at your Exchange logs to see whether that actually is the problem in your case. (If you can successfully send out small messages but not large ones, then that leans towards this being the problem).

http://stackoverflow.com/questions/14869016/phpmailer-data-not-accepted-from-server-421

Cheers,

Aaron

4 results