Cannot send email from Laravel app in production

Viewed 446

I'm trying to send emails from Laravel app that I have in production, but it's not working. It gives me this error:

Connection could not be established with host smtp.googlemail.com :stream_socket_client(): unable to connect to ssl://smtp.googlemail.com:465 (Connection timed out)

But when I try to send email from localhost it works correctly.

my config mail

  1. MAIL_DRIVER=smtp
  2. MAIL_HOST=smtp.googlemail.com
  3. MAIL_PORT=465
  4. MAIL_USERNAME=*********
  5. MAIL_PASSWORD=**********
  6. MAIL_ENCRYPTION=ssl

also email is less secure:on

1 Answers
Related