I did some searching and haven’t seen any relatively recent postings on this. Is it possible to configure the smtp settings to work with smtp.gmail.com?
After tracing through the EE_Email.php file I learned that EE uses codeigniter’s Email.php library file so I searched their forums too and found this thread.
Right now I’ve just played with the smtp settings and not messed with any *Email.php files.
I should note that I was able to get EE to send email through sendmail and php mail but would really prefer to use gmail through smtp if possible.
If I enter “smtp.gmail.com:587” as the smtp server address I get this error. Which I think means it actually tried to connect to gmail but was rejected.
An Error Was Encountered
Unable to send email at this time.
220 mx.google.com ESMTP r37sm2966590wak.11
hello: 250-mx.google.com at your service, [MY_SERVER_IP]
250-SIZE 35651584
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
email_failed_smtp_login
from: 530 5.7.0 Must issue a STARTTLS command first. r37sm2966590wak.11
email_smtp_error
to: 530 5.7.0 Must issue a STARTTLS command first. r37sm2966590wak.11
email_smtp_error
data: 530 5.7.0 Must issue a STARTTLS command first. r37sm2966590wak.11
email_smtp_error
502 5.5.1 Unrecognized command. r37sm2966590wak.11
email_smtp_error
email_send_failure_smtp
If I enter “smtp.gmail.com:465” or “ssl://smtp.gmail.com:465” it loads for a while and eventually nginx gives me a 504 and no errors in php-fpm.log. I have openssl and php has it loaded as per the CI thread.
Any insight would be much appreciated.