Setting up Gmail
Hello team, I am trying to set up an email (Gmail) however I am having an issue.
My email configuration is like this in the .env file
I get an error when I run the following command
php artisan config:cache Configuration cache cleared! In LoadConfiguration.php line 49: date_default_timezone_set(): Timezone ID '' is invalid
My timezone is set to APP_TIMEZONE=EDT in my .env file
and when I try to send an email, I get the following error
Error! Connection could not be established with host smtp.site.com :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known.
I have also turned on less secure app access;
Can you please guide what I am missing?
devansh-webkul last edited by
Try to do these things,
php artisan cache:clear.
php artisan config:clear.
If possible restart your web server.