sfcma / members

1 stars 1 forks source link

Record an email_log event for all emails sent through the system #64

Open dan-brewster opened 7 years ago

dan-brewster commented 7 years ago

We want to make sure we have a clear understanding of how many emails we've sent so that we can display a notice if a user tries to send too many emails (which would silently fail to send to all recipients on their end). Displaying the notice is another ticket. (#65)

To do this, we need to ensure all emails sent through Mailgun (which is all of them) are recorded in the site. I think it makes the most sense to just use the existing EmailLog table for this. We may want to add a column for additional metadata if we need to.