Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

Email setup gmail

De MoodleDocs
La revisió el 10:10, 16 jul 2008 per guihui liao (discussió | contribucions) (s)
(dif.) ← Versió més antiga | Versió actual (dif.) | Versió més nova → (dif.)
Salta a:navegació, cerca

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.