I can't send mail by gmail
I cant send mail by gmail
my site's framework is laravel
I have tried send mail by
587 / tls AND 465/ ssl
And I allow the option "less secure app"
2 factor authentication is not enable
But always get this notification:
Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to tcp://smtp.gmail.com:587 (Connection timed out)
here is my setting
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=user@gmail.com
MAIL_PASSWORD="password"
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
And I have try telnet
I get this response:
sudo telnet smtp.gmail.com 587
"Trying 2404:6800:4008:c00::6c…
Trying 108.177.97.109…
telnet: Unable to connect to remote host: Connection timed out"
how can I solve this problem