I can't sent out any email in my local environment.
I keep getting :
_
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=*****
Note : Surprisingly - I have the same setting in my production server, and it works perfectly.
Any hints / suggestions ?
"Network is unreachable" suggests that the server name is wrong or that the DNS service is returning the wrong address. (imap.gmail.com and port 993 are correct. Make sure your software is using SSL to connect.)
Update my driver line to
MAIL_DRIVER=sendmail
It works on the first try.
Final .env
file should look like this
MAIL_DRIVER=sendmail
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=*****
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With