Randy_Johnson
2 months ago
281
3
General

.env MAIL variables not clearing

Posted 2 months ago by Randy_Johnson

My original mail var are:

MAIL_MAILER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=462
MAIL_USERNAME=email
MAIL_PASSWORD=password
MAIL_ENCRYPTION=ssl

Which I had a timeout problem of.

connection could not be established with host smtp.googlemail.com :stream_socket_client(): unable to connect to ssl://smtp.googlemail.com:462

So, looking through some forums I came across.

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls

But when running the code again I come up with the same error of:

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

Which is saying to me that there is a problem with the env. vars not resetting, even though I ran.

php artisan cache:clear

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