PDA

View Full Version : Moodle can't email



moodle-user
12-19-2009, 01:45 AM
Moodle does not email students. I have been testing this by making test posts in a news forum to which I have subscribed several test users to. I make the new post and check the "Mail Now" option. When click on Post, it says "This post will be mailed out immediately to all forum subscribers."

I've tried several configurations for email. I searched this issue and it seems that moodle/lib/phpmailer/class.smtp.php needs to be edited to include the correct default port number, 26 (when using SMTP to send the mail). So, I went ahead and did that and put in the SMTP host in the email configuration (I tried localhost, localhost:26, mail.myserver.com, mail.myserver.com:26), the SMTP username and password as given in the mail client configuration page linked from cPanel for the address I made, and the no-reply address (which I registered as an account thru cPanel).

None of the above worked.

I ran across another posting in which it said that the default port number in moodle/lib/phpmailer/class.phpmailer.php has to be changed. So, I went ahead and did that - didn't work. I deleted the SMTP information that I put in the Email configuration page, so that it defaults to PHP mail - didn't work.

I'm sure that the SMTP server is working, as I am able to send and receive mail thru it both thru the online webmail system, as well as a pop/smtp client running on my computer (outlook express).

I'm running out of time, and patience to get this problem fixed. It's really frustrating.

rthoman
12-19-2009, 10:15 AM
I just want to echo this problem. I have been using moodle and php email successfully in the past. But now it is no longer working. Has something changed with the php email settings?

rthoman
12-20-2009, 10:25 PM
I have smtp working using a bluehost email address.
Here is the configuration i am using:
smtp hosts: mail.myserver.com
smtp username: myemail@myserver.com (set up in cpanel)
smtp password: xxxxxxx
NOW HERE IS THE KEY...
you have to put the same email address (myemail@myserver.com) for both the "no-reply address" and the "support email." Apparently if these addresses are not from myserver.com then bluehost will reject the email as spam (I believe that's the issue).
In any case, this is now working for me.

Steve Paul
01-14-2010, 09:46 PM
you have to put the same email address (myemail@myserver.com) for both the "no-reply address" and the "support email."

I used to have them different and it was working fine but now it's just stopped and even when I attempt to do as you said, it counts another failure attempt

jeff_perez
02-12-2010, 11:22 AM
I also have been using moodlemodel and php email successfully in the pas but now its having problem. But thanks rthoman to sharing setting with us. Its working on my side also.