Thread is working on many years old, but the topic/subject is the same now…
I read all interventions and followed suggestion but no solution.
And Moodle release is not 1.9 but 2.2.2.
Now I upgraded to Moodle 2.2.2+ (Build: 20120323) so problem is on that release… since nothing has changed
MySQL client: 5.5.15
PHP Version 5.3.10
I use both CAS and local authentication and it works correctly.
I've got a problem with forum notification email.
I'm not able to identify the beginning of the problem, actually… it seems to me that it started about on 9th February 2012, when I upgraded from 2.1 to 2.2 but I'm not completely sure.
Roles are defined at system level (not at forum level).
Users do not receive mails at post sending inside forums even if they ARE subscribed.
I tried both with compulsory subscription and non compulsory subscription forums since I read that sometimes with previous Moodle releases that could be the problem but they behave the same.
A post is inserted in the forum
mail is sent - cron runs correctly
If I also run it manually it shows it:
"sending post n"
"processing user n"
"12 users were sent post 333" and so on
… but actually only (one of) my user(s) receives mails.
I'm user id 3 in db, that is the first CAS user inside db (user 1 is guest, user 2 is a local admin I created at first).
I already looked around inside forums and Moodle Tracker platform but I didn't find any solution.
I found http://moodle.org/mod/forum/discuss.php?d=141218
I verified and my problem is different from those signalled there and solutions are not suitable for my issue
I also found: http://tracker.moodle.org/browse/MDL-30698
and I thought: "That's it. It seems to me that I've got the same problems with email notifications from forum.
Cron runs correctly, shows user processing and indicates that "n users were sent post idnumber" but only one user receives email notification."
I therefore modified file ../mod/forum/lib.php as suggested, but I didn't solve the problem.
I looked for mail problems as suggested in a post but I get
Mar 25 14:38:25 colab sendmail: q2PCcOk4032722: to="Sara Valla" <email@example.com>, firstname.lastname@example.org (48/48), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=142372, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q2PCcO9b032723 Message accepted for delivery)
Mar 25 14:38:25 colab sendmail: q2PCcPZ4032726: Authentication-Warning: colab.cce.unipr.it: apache set sender to email@example.com using -f
Mar 25 14:38:25 colab sendmail: q2PCcPZ4032726: firstname.lastname@example.org, size=4362, class="-60", nrcpts=1, msgid=<email@example.com>, relay=apache@localhost
Mar 25 14:38:25 colab sendmail: q2PCcPbR032727: from=<firstname.lastname@example.org>, size=4557, class="-60", nrcpts=1, msgid=<email@example.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
and it seems to me that it is ok...
I can't think of any other things to do and cannot solve the problem
Any further suggestions? Thanks in advance!