thealmightychris
1 month ago
124
3
Laravel

i cant send an email

Posted 1 month ago by thealmightychris

i am using a gmail to send the email, i have tried changing the port number to 465, 2525, 25 and nothing worked my error:

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

my .env:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=ssl

Please sign in or create an account to participate in this conversation.