Introduction
All email features are disabled by default.
In order to receive emails on Diffgram you will need to setup an email provider.
The Default mail provider is Mailgun.
It's free for a basic account with them and we have been very happy with them.
Or setup any email provider.
Simply set the env variables
MAILGUN_KEY
EMAIL_DOMAIN_NAME
For example we useEMAIL_DOMAIN_NAME= 'mail.diffgram.com'
Make sure the domain name is in the allowed list of domain in the mailgun app (https://app.mailgun.com/app/sending/domains)- Set
EMAIL_VALIDATION
toTrue
Testing if Email is Working
One way to do a quick test for email sending in diffgram is to check if the login screen now shows a "Send Magic Link" button.
If it's not showing it, double check if you added the correct ENV variable in the above steps.
If you are able to see it, input the email of your diffgram user and click send magic link. You should receive a link for doing a login in your email.
If you're not receiving it, please check mail gun's logs in the platform to see if there is any other issue with the mailgun configuration. (Go to mailgun's Log Section)
Custom Mail Provider (SMTP)
Updated almost 2 years ago