Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out)
I am trying to run user email verification in my laravel app.
But i keep getting this error
Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out)
for gmail smtp setup you need to create security keys and them in env file and imap setting should be enable . 3 party app access should be on your gmail account . gmail is updating continously its security.
1.security key generate for 3rd party app in gmail
2.add them in env
3.enable imap
@redroseamit
I have the same problem. Email is sent from local but not from the server. I tested the link you put and it still gives the same error.
Always makes the following error:
@nekooee it must work because i faced same issue and i am done with same process. If server side its not working please clear the configuration setting cache and also check with ports i am not sure which port you are using .port should not be blocked .i am using shared hosting no clue about VPS.if vps is there some server configuration need to be done.
I have the same problem. Locally everything works fine but in the server I have a connection problem.
Connection could not be established with host smtp.googlemail.com :stream_socket_client(): Unable to connect to ssl://smtp.googlemail.com:465 (Permission denied)