IS-AgroSmart / AgroSmart-Web

1 stars 1 forks source link

Use Sendgrid for emails #106

Closed jreyesr closed 3 years ago

jreyesr commented 3 years ago

For better transactional emails, we should use Sendgrid. Changing the current Gmail acct to Sendgrid should be easy, as explained in https://sendgrid.com/docs/for-developers/sending-email/django/:

Additionally, the domain should be verified. Docs are on https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/. Steps are:

  1. In the SendGrid UI, select Settings > Sender Authentication.
  2. In the domain authentication section, click Get Started.
  3. Next, add in information about your DNS host (OVH)
  4. Fill in the domain that you want to send from and add advanced settings as needed (i.e., chech that Automated Security is On). Your domain needs to match the domain of your FROM address on the emails you are sending out. For example, if I am sending an email from notifications@flysensorec.com, I would set my domain authentication domain to be flysensorec.com. Click Next.
  5. Next, you need to add all of the CNAME records on this screen to your DNS host (OVH).
jreyesr commented 3 years ago

Update: Sendgrid rejected the account application, with something like these symptoms. They seem to be quite nervous about spam.

We'll keep using the Gmail account for now. If something more professional is required, we can try SendInBlue: 300 emails per day (should be plenty), no credit card required.