Google SMTP External Mail not working on new web host
I have moved a site to a production web server (Apache) with the clients previous hosting company.
Sending form submission notification emails using 'External SMTP' with Google Mail is failing. It is returning a blank screen with the url:
I had it working on our demo server using the client account details, and the following settings:
Email Server: smtp.gmail.com
Port: Default (25)
The 'FORM_BLOCK_SENDER_EMAIL' setting is set in /config/site.php.
I have checked with the hosting company that the ports aren't blocked (25, 465, 587) and have tried a combination of settings on the new web server (TLS, SSL).
We are using Concrete 5 126.96.36.199, and PHP 5.3.6.
I have Concrete 5 logging and debugging, and PHP display_errors turned on, yet we are getting no error messages on screen or, in the logs.
I added logging using Concrete5's
I have tried adding Zend logging statements for the Zend SMTP library but I haven't been able to get either PHP outputted errors, or log file errors working.
Has anyone had the same issues with sending mail with an external SMTP server? Or has any suggestions or solutions?
Meanwhile, a quick fix would be to have the messages sent to the email provided by the host (they always offer free emails) and configure your gmail account to automatically grab the emails from their servers.
SMTP server address: smtp.gmail.com
SMTP user name: Your full Gmail address (e.g. [email protected])
SMTP password: Your Gmail password
SMTP port: 465
SMTP TLS/SSL required: yes
You need to use those to be allowed to use their outgoing smtp.
Mail Exception Occurred. Unable to send mail: <>: missing or malformed local part
any advice please?