Skip to content
Advertisement

How to configure `.env` file in Laravel for sending mail?

Getting error while sending mail from a in Laravel website.

local.ERROR: Connection could not be established with host smtp.gmail.com [A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. #10060]

.env file

JavaScript

Already googling but can’t get the solution yet. Whatever I change( PORT, DRIVER ) in .env file always shows the same error.

How to solve it !!

Advertisement

Answer

clear the env file cache

JavaScript

configure mail.php

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement