not sending mail - alltough eMailTest says its successful

Re: not sending mail - alltough eMailTest says its successful

by Visvanath Ratnaweera -
Number of replies: 4
Picture of Particularly helpful Moodlers Picture of Translators
Hi

Yes, that is what I meant. Whether some other program can send mail with the same particulars.

Now I see that you said "alltough eMailTest says its successful" in the subject but in the post you wrote "I do get json error when sending a chat message". A screen-shot please!

Yes, the debug messages are important, but can't make anything out of the Dutch. The question is whether the an error tells mail has not been sent or the e-mail was sent but not arrived. Which one? What is the evidence?
In reply to Visvanath Ratnaweera

Re: not sending mail - alltough eMailTest says its successful

by Thijs Sins -

Hi Visvanath,

Thanks for your help again, very kind indeed!

I have narrowed it down probably to this error message I get. I saw the forum mail task hasn't run, it's a scheduled task. While running the cron task, clicking start now in the scheduled tasks page, I get these error message about the cron task:

"Scheduled task failed: Forum-mails en onderhoudstaken (mod_forum\task\cron_task)"

"Function cron_setup_user() cannot be used in normal requests!"

I tried fiddling with both the cron webserver and the cron command line, but with no luck so far.

Any advice would be welcome.

Kind regards

Thijs

In reply to Thijs Sins

Re: not sending mail - alltough eMailTest says its successful

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
If Moodle's cron job is not running at regular intervals, there won't be forum mails. See https://docs.moodle.org/en/Cron. To find out why, increase the https://docs.moodle.org/en/Debugging level to maximum and post the output here.

You know, you can check Moodle sending mails independently by either requesting a "Forgotton password" via e-mail or writing somebody a message? See https://docs.moodle.org/en/Messaging.
Average of ratings: Useful (1)
In reply to Visvanath Ratnaweera

Re: not sending mail - alltough eMailTest says its successful

by Thijs Sins -
Hi Visvanath,

The puzzle has been solved. I called my domain server company. They figured out Moodle generates an automatic no-reply@mysitename.nl address whilst sending outgoing mail. It doesnt exist, so it came in their spam filter. Now I have made an email alias with no-reply@... and its working like a charm.

Thanks for you help!

Highest regards.
Thijs
Average of ratings: Useful (1)
In reply to Thijs Sins

Re: not sending mail - alltough eMailTest says its successful

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
You see? "Not sending mail" is not the same as "not receiving mail".
:-?

The two cases where Moodle definitely tries to send mail must have narrowed down your search and led to the mainitainers of the mail server.