Note: You are currently viewing documentation for Moodle 3.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Email setup gmail.

Email setup gmail

From MoodleDocs
Revision as of 10:10, 16 July 2008 by guihui liao (talk | contribs) (s)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hello. I run Moodle and my project uses the Gmail 'domains' service where we use Gmail as our email processor. IE: We have no email service on our server, we use Googles.

We run Moodle to train new developers/staff and so we needed the emails from the courses and Ask a Question type module.

I was able to get Gmail working under these conditions by doing the following:

In the Email section for smtp host I used: smtp.gmail.com My @theseventhsungame.net email (Which again we use Gmail domains..) The above email's password.


I then opened /lib/phpmailer/ and modified the following files:

class.phpmailer.php around line 162

I changed var$Port =25; to 465

class.phpmailer.smtp around line 30

I changed var $SMTP_PORT = 25; to 465

In the class.phpmailer.smtp file around line 83

DIRECTLY after the Fucntion header, so the next line after the { I added: $host='ssl://' . $host;

I am now sending mail using the GMAIL feature.

http://www.theseventhsungame.net http://www.theseventhsungame.net/tssuniversity

Hope that helps someone =)

Sincerely, Chel Ramsey admin@theseventhsungame.net


PS an additional step you may or may not need to take is to Un-comment the php_openssl.dll extension in php.ini I did not have to do this.