Moodle email only works for admins

Moodle email only works for admins

by Hoda Farazandeh -
Number of replies: 2
Hello everyone,

We're using Moodle version: Moodle 3.10 (Build: 20201109) and everything about the mail system was just fine until recently when we found out that the Email notification system only works for admins.

We installed the Moodle eMail Test plugin and it shows "Moodle successfully delivered the test message to the SMTP mail server" but no Email arrived at the student-level Email.

Can you please help us with this matter?

Regards,
Hoda

Average of ratings: -
In reply to Hoda Farazandeh

Re: Moodle email only works for admins

by Hoda Farazandeh -
Hello again,
to elaborate on this matter, it seems like messages are only being sent to Emails using the main domain of the website, which includes our admins' Emails. Does this mean that it should be handled from the server side?
Can you please help us with identifying the problem?

Regards
In reply to Hoda Farazandeh

Re: Moodle email only works for admins

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I think you are looking in the right direction. Study the full header of a received email notification from your site. The typical candidates are the envelope and body From fields. Ask your mail provider whether those values are allowed.

I assumed, you are not running your own SMTP server or relay. Otherwise you could have looked in to its logs.

Basically, when you get an SMTP account the provider puts a set of restrictions on the mail you sent.

Another trick is to give the envelope sender a true mailbox and read its mail.
wink