empty email messages

empty email messages

Steve Strong -
回帖数:8
all of the emails sent by moodle (notifications of student submissions, new enrolment registrations, etc.) have nothing in their body.

any ideas? thanks!
steve
回复Steve Strong

Re: empty email messages

renato soffner -

Steve: in my case the messages simply do not go! Any idea why?

Renato Soffner.

回复renato soffner

Re: empty email messages

Barbara Trainor -
I've got a similar problem with email being generated by our Moodle site. All forum posts and assignment submission emails were being sent until recently and now no emails go out. Likewise, students aren't receiving emails when their work is corrected and uploaded to the site. Our IT Coordinator has checked cron and it is running fine. I've checked the assignment settings and they're set for teachers to receive emails.

We're in the middle of our program with many courses currently running so any advice is greatly appreciated.

Barbara
回复Steve Strong

Re: empty email messages

Denny Brown -
I'm having similar problems and am looking for answers. I'll send another reply if/when I find any.

Problem: empty subject and body in registration confirmation email
Problem: Forum email not arriving at all

More info re my case:
  • Shared hosting at SiteGround; Moodle 1.6.1.
  • Everything working until some time early this week. I know I received email from a forum on Monday, 2/12, 3pm-ish.
  • Then there is apparently a period when no emails came through. It took a while for me to discover that my own posts were not showing up. (duh!)
  • I posted a trouble ticket at SiteGround. After a couple of info exchanges, they tried to register. This time, the registration email got through, but the subject and body of the email were empty. So SiteGround support (correctly I think) said that it's an app issue within Moodle. This behavior is reproducible. i.e. all regisration confirmation emails are empty.
  • I also tried posting in the forum again. So far no email is coming through.
  • I found the info on making sure Cron is running. I checked my hosting config and it is set up and looks right to me. Also ran cron.php from the browser and it seemed to work fine, but no forum email is appearing.
  • I found a post about some ISPs having unpublished limits on rate of outgoing email msgs. One of my experiments was to do a post to a private forum with only me as a subscriber. That didn't come through either.
Help or hints on either problem would be appreciated.

-Denny


回复Denny Brown

Re: empty email messages --> SUCCESS!

Denny Brown -
I have solved both problems; they were related.

To review, I had two problems:
  • Empty subject and body in registration confirmation email, and also in lost password email
  • Forum email not arriving at all
Version: Moodle 1.6.1
Hosted: Siteground

The problem was that I had changed allowuseremailcharset* to Yes. That resulted in Moodle trying to convert subject, body, and more from one charset to another. In that attempt, it ended up with blank subject and body. (I'm guessing that this is a bug.) Some email (like registration confirmation) didn't care and sent the blank message. Forum email was smart enough to not send such useless email.

Solution: Set allowuseremailcharset back to No.

This made the email send routine skip the charset conversion code, leaving the subject and body intact, and then the email started flowing again.

Experienced folks: Does it make sense to post a bug against 1.6.1? Or is the assumption in the community that old versions don't get fixed?

*allowuseremailcharset is in Administration > Configuration > Variables > Mail
回复Denny Brown

Re: empty email messages --> SUCCESS!

john attwood -
I'm having a similar problem in 1.7.1. At first I thought it was the students spam filters but upon investigation realized it's something inside of moodle. Mine is set to none and I don't allow user to specify character set so I guess I'm going to have to experiment.

It's stripping the subject and body.


John