SMTP Setup
Created 1 year ago by cynoHi, I've set up SMTP (tested, and working on other sites) in .env file. However non of the emails seems to arrive, and on server log there isn't anything showing the email was sent. Any idea how to fix this?
ryanthompson
—
1 year ago
Any logs to substantiate this? SMTP should be pretty straight forward. Maybe show us a desensitized version of your .env
file? Which will in turn lock your CP ability to edit settings.
ryanthompson
—
1 year ago
Maybe set the driver to log
or something and try then. Could be that it's not working for an environment issue so keep an eye on your logs both application and server.
cyno
—
1 year ago
Checked the logs, cant really find anything mail related. This is the relevant part of the .env file for smtp setup.
MAIL_DRIVER=smtp
MAIL_HOST=mail.#####.com
MAIL_PORT=587
[email protected]#####.com
FROM_NAME=Hustle
[email protected]#####.com
MAIL_PASSWORD=###########
Have you made sure all settings in your config directory related to mail is set correctly?
Another good idea to test emails is to use mailtrap.