Trying to send email with Swiftmailer, I got this error. I've configured swiftmailer with:
transport: smtp
host: smtp.gmail.com
username: [email protected]
password: password
port: 587
encryption: ssl
I always get this error message:
Connection could not be established with host smtp.gmail.com
I've also tried with:
transport: gmail
host: smtp.gmail.com
username: [email protected]
password: password
port: 587
encryption: ssl
The complete error message is
[YYYY-mm-dd hh:ii:ss] app.ERROR: Exception occurred while flushing email queue: Connection could not be established with host smtp.gmail.com [ #0]
Other questions:
My case is different from this. In my case I've not Avast antivirus.
EDIT: changing port to 465, as Alex Howansky suggested, erro changes in
Exception occurred while flushing email queue: Failed to authenticate on SMTP server with username "my email address" using 1 possible authenticators