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

  1. MAILGUN_KEY
  2. EMAIL_DOMAIN_NAME
    For example we use EMAIL_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)
  3. Set EMAIL_VALIDATION to True

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.

10161016

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)

10801080

Custom Mail Provider (SMTP)

Setup SMTP