0

I am trying send emails but I am getting the error below:

"connection could not be established with host smtp.gmail.com #0".

I made test with different ports (465, 578), with SSL and TLS and the last with the mail account and it is working.

I think that the problem is on XAMPP.

What am I doing wrong and how can I resolve it?

nyedidikeke
  • 6,899
  • 7
  • 44
  • 59

1 Answers1

0

Try using:

MAIL_DRIVER=smtp

MAIL_HOST=smtp.gmail.com

MAIL_PORT=587

MAIL_ENCRYPTION=tls

MAIL_USERNAME=y*****4@gmail.com

MAIL_PASSWORD=a*****

Hope, it works for you.