Email Settings using sendgrid

Hi, I'm using sendgrid for my different applications. I added the configuration to the ENV file and can see them in the UI. But Im not able to send email (invite, or get email based on events) What am I doing wrong //Nicklas
No description
6 Replies
nickponcho
nickponchoOP2mo ago
My instance is selfhosted on docker version 0.42.11
dialnco
dialnco2mo ago
EMAIL_DRIVER should be "smtp" to enable mailing. https://twenty.com/developers/section/self-hosting/setup#email
charles
charles2mo ago
correct 🙂
nickponcho
nickponchoOP2mo ago
I changed to smtp driver, but did not work with sendgrid
charles
charles2mo ago
I have never tried to setup sendgrid but it should work! # [email protected] # [email protected] # EMAIL_FROM_NAME='John from YourDomain' # EMAIL_DRIVER=logger # EMAIL_SMTP_HOST= # EMAIL_SMTP_PORT= # EMAIL_SMTP_USER= # EMAIL_SMTP_PASSWORD= have you filled the following env variables?
nickponcho
nickponchoOP2mo ago
Yes Now it does, had to add the Environment variables to the Worker service in docker-compose.yml . I tried with EMAIL_DRIVER=smtp on server only but it did't work. but when I added it as well to the worker, I could send invites to external recipients. So now it's solved

Did you find this page helpful?