wrekatlanta/wrektranet

Use SendGrid or Mailgun for emails

Opened this issue · 4 comments

Use SendGrid or Mailgun for emails

Or Mandrill. 2k more free per month than Mailgun.

Awesome, I'll compare it with Sendgrid a bit more but Mandrill seems like a good choice (and it's local!). Mandrill's templating system seems kind of weak though (no iterators) so I'd probably use SMTP instead of their API.

@nlts do you want to take over setting up an account and adding this in?

  • add the credentials to config/application.yml
  • change the SMTP settings in config/environments/production.rb
  • setup sendgrid/whatever account, I think you need to do something to confirm that we own the domain wrek.org

Yo, just a heads up on a few things. Be sure to either encrypt the API keys before pushing, or any one could send with the wrek account.

Although entirely optional, to better ensure people get the emails, you'll want to set up DKIM and SPF records on wrek.org. Relevant Mandrill and Sendgrid KB articles.