Email setup gmail: Difference between revisions
(Reformat, interesting page) |
m (tweak format) |
||
Line 3: | Line 3: | ||
This will require a hack to the code. | This will require a hack to the code. | ||
==Steps in site administration block== | == Steps in site administration block == | ||
In the site administration block in the Email section for smtp host use: | In the site administration block in the Email section for smtp host use: | ||
smtp.gmail.com | smtp.gmail.com | ||
My @theseventhsungame.net email (Use Gmail domains) | My @theseventhsungame.net email (Use Gmail domains) | ||
Password should be set to the above email's . | Password should be set to the above email's . | ||
==Steps for code hack== | ==Steps for code hack== | ||
Line 27: | Line 25: | ||
*$host='ssl://' . $host; | *$host='ssl://' . $host; | ||
==Completed== | == Completed == | ||
This setup will allow Gmail to work with for example: | This setup will allow Gmail to work with for example: | ||
Line 34: | Line 31: | ||
http://www.theseventhsungame.net/tssuniversity | http://www.theseventhsungame.net/tssuniversity | ||
==Tips and tricks== | == Tips and tricks == | ||
* Some sites may need an additional step to Un-comment the php_openssl.dll extension in php.ini. | * Some sites may need an additional step to Un-comment the php_openssl.dll extension in php.ini. |
Revision as of 11:24, 26 July 2008
Google's gmail can be set up as an email processor for Moodle. This is reduces or eliminates the need for an email service on a server. For example: when Moodle is used to train new developers/staff.
This will require a hack to the code.
Steps in site administration block
In the site administration block in the Email section for smtp host use: smtp.gmail.com My @theseventhsungame.net email (Use Gmail domains) Password should be set to the above email's .
Steps for code hack
On the Moodle site go to /lib/phpmailer/ and modified the following files:
class.phpmailer.php around line 162
- Change var$Port =25; to 465
class.phpmailer.smtp around line 30
- Change var $SMTP_PORT = 25; to 465
class.phpmailer.smtp file around line 83 DIRECTLY after the Fucntion header, so the next line after the { add:
- $host='ssl://' . $host;
Completed
This setup will allow Gmail to work with for example:
http://www.theseventhsungame.net http://www.theseventhsungame.net/tssuniversity
Tips and tricks
- Some sites may need an additional step to Un-comment the php_openssl.dll extension in php.ini.