Email SMTP send as permission error

Re: Reply:Moodle in English: Re: Email SMTP send as permission error

by Miki Alliel -
Number of replies: 0
Picture of Translators

It works but when we set the "forum_replytouser" parameter it dosn't work.

we get this:

SMTP; Client does not have permissions to send as this sender 2017-SMTP ERROR: DATA END command failed: 
SMTP Error: data not accepted. Error: lib/moodlelib.php email_to_user(): SMTP Error: data not accepted.SMTP server error: DATA END command failed

How can we make it work by letting students reply to their teachers. from their own email account?

it is very important to have this function and it's not working.


we even  unchecked the "forum_replytouser" and put manually in "message\output\email\message_output_email.php file "  line 85~

replyto =$eventdata->userfrom->email;

or

replyto =$eventdata->userfrom;

then sending the message - students get the email but when clicking on reply (in his own gmail account) they can't see the teacher's address but only the support email address of the site.  sad

very frustrating

Any help please?