SMTP Setup
Created 1 year ago by cyno

Hi, 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?

william  —  1 year ago

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.

fatihalp  —  1 year ago

Be sure that SMTP and it's port is allowed in server and firewall. Especially Google Cloud doesn't allow any SMTP port

cyno  —  1 year ago

@fatihalp Yes it is allowed, all the other websites on the same server can use the server SMTP. @william I've checked them, seems fine to me yeah. Also the info on the dashboard seems good as well.

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

Will check it on monday, and gonna report back.

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=###########