I'm having problems sending emails through the app. I activated the SMTP Mailer module and am using Gmail as my mail server. Here are my settings:
- Enable SMTP Mailer: true
- SMTP Authentication: true
- SMTP Username: myname@mydomain.com
- SMTP Password: mypassword
- SMTP Server Name: smtp.gmail.com
- SMTP Server Port: 587
- Secure Connection: TLS (incorrectly labeled as "TSL" in the app)
- 'From' Name: My Site Name
- Override Default Sender: myname@mydomain.com
- Attach: false
====
The error message in the Test Form: "Mail Send Failed"
The error message in any form on the site: "SMTP Error: Could not connect to SMTP host."
====
My server:
- Ubuntu Server 14.04.1 LTS
- Passed all requirements during installation
- I have other PHP sites on the server successfully sending Emails through smtp.gmail.com
Logs
====
Apache error.log after clicking the 'Save' or 'Test' button in the SMTP Mailer form:
[Thu Jul 02 16:59:00 2015] [warn] [client 135.0.6.44] mod_fcgid: stderr: PHP Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/www/clients/client14/web67/web/inc/utils.inc.php on line 1160, referer: http://mydomain.com/m/smtpmailer/administration/
PHP Info:
safe_mode | Off | Off |
safe_mode_exec_dir | no value | no value |
safe_mode_gid | Off | Off |
safe_mode_include_dir | no value | no value |
open_basedir | /a/bunch/of/paths | /a/bunch/of/paths |
Please help.