T
Twenty8mo ago
Karl!

Email sending not working

Hi guys! Im trying to enable email sending in my self hosted app. I entered these variable in my env but still not working EMAIL_DRIVER=smtp EMAIL_SMTP_HOST=smtp.gmail.com EMAIL_SMTP_PORT=465 EMAIL_SMTP_USER=my-email EMAIL_SMTP_PASSWORD='my-password' I can confirm that smtp user and password is correct. Am I missing something else? Do I need to run cron job? Please help
6 Replies
Karl!
Karl!OP8mo ago
up Hello?
itsaboutcode
itsaboutcode8mo ago
I am also facing same issue
martmull
martmull8mo ago
Hey! The emails are sent by the worker. So you need to make sure your worker is up and running Also, updated env variables are taken into account only after a worker restart
Prince
Prince8mo ago
I deployed using Dokploy, add env variables, but sending doesn't work IS_EMAIL_VERIFICATION_REQUIRED: true EMAIL_DRIVER: ${EMAIL_DRIVER} EMAIL_SMTP_HOST: ${EMAIL_SMTP_HOST} EMAIL_SMTP_PORT: ${EMAIL_SMTP_PORT} EMAIL_SMTP_USER: ${EMAIL_SMTP_USER} EMAIL_SMTP_PASSWORD: ${EMAIL_SMTP_PASSWORD}
Farrit
Farrit4mo ago
I am also having this issue
Prastoin
Prastoin4mo ago
Please inspect your worker searching for errors or no logs meaning you might need to activate your cron following the docs Also double check you've setup the env variables correctly using echo $MY_VAR in your server container

Did you find this page helpful?