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

1 Reply

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct