Actions

Difference between revisions of "How do I use Gmail as my mail server?"

From Joomla! Documentation

(Corrected references to SSL in Apache, added the need for SSL in PHP, added links to Google ASP and 2-step verification instructions)
m (fixing up)
Line 18: Line 18:
 
The SSL module does not need to be enabled in Apache.  
 
The SSL module does not need to be enabled in Apache.  
  
The OpenSSL extension needs to be enabled in PHP. The details can be found at [http://www.php.net/manual/en/openssl.installation.php]
+
The OpenSSL extension needs to be enabled in PHP. The details can be found at http://www.php.net/manual/en/openssl.installation.php  
  
 
If you are using WAMP on Windows, the openssl module is not enabled by default and you need to enable it. To do this:
 
If you are using WAMP on Windows, the openssl module is not enabled by default and you need to enable it. To do this:
Line 24: Line 24:
 
# Save the php.ini file and restart the Apache service.
 
# Save the php.ini file and restart the Apache service.
  
Note that if you use 2-step verification in Gmail, you need to add a new password in Settings - Accounts - Change accounts settings - Other Google Account settings - Security - 2-step verification - Manage your application specific passwords.
+
{{tip|title=Note|Note that if you use 2-step verification in Gmail, you need to add a new password in Settings - Accounts - Change accounts settings - Other Google Account settings - Security - 2-step verification - Manage your application specific passwords.}}
  
When the new Application Specific Password (ASP) is presented in groups of four characters separated by spaces, make sure that you do NOT enter the spaces into the SMTP password in the mail server settings in Joomla.
+
When the new Application Specific Password (ASP) is presented in groups of four characters separated by spaces, make sure that you '''do NOT enter the spaces''' into the SMTP password in the mail server settings in Joomla.
  
Application Specific Passwords (ASPs): [https://support.google.com/accounts/answer/185833]
+
* Application Specific Passwords (ASPs): https://support.google.com/accounts/answer/185833
 
+
* 2-Step Verification: https://support.google.com/accounts/answer/1070457
2-Step Verification: [https://support.google.com/accounts/answer/1070457]
+
  
 
<noinclude>[[Category:FAQ]][[Category:Server configurations]]</noinclude>
 
<noinclude>[[Category:FAQ]][[Category:Server configurations]]</noinclude>

Revision as of 22:54, 25 January 2014

If you have a working Gmail account you can use Gmail as your mail server by setting it in the global configuration.

On the server tab set the following:

  • Mailer: SMTP
  • Set the next three lines with your information, leave your path untouched unless you are sure it needs to change for some reason.
  • SMTP Authentication: Yes
  • SMTP Security: SSL
  • SMTP Port 465
  • SMTP username: your gmail username
  • SMTP password: your gmail password
  • SMTP host: smtp.gmail.com

The following is also a working combination:

  • SMTP Security: TLS
  • SMTP Port 587

The SSL module does not need to be enabled in Apache.

The OpenSSL extension needs to be enabled in PHP. The details can be found at http://www.php.net/manual/en/openssl.installation.php

If you are using WAMP on Windows, the openssl module is not enabled by default and you need to enable it. To do this:

  1. Open the php.ini file and uncomment out the line extension=php_openssl.dll.
  2. Save the php.ini file and restart the Apache service.
Tip-icon.png
Note

Note that if you use 2-step verification in Gmail, you need to add a new password in Settings - Accounts - Change accounts settings - Other Google Account settings - Security - 2-step verification - Manage your application specific passwords.

When the new Application Specific Password (ASP) is presented in groups of four characters separated by spaces, make sure that you do NOT enter the spaces into the SMTP password in the mail server settings in Joomla.