Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Latest commit

 

History

History
15 lines (10 loc) · 672 Bytes

email.md

File metadata and controls

15 lines (10 loc) · 672 Bytes

Documentation / Email

Overview

We use the free tier of SendGrid for sending emails (our API key is stored in the environment variable SENDGRID_API_KEY). A new email format can be added by creating a newEmailName.email.js file (see the existing ones for what should be in it) and calling:

await email.send.newEmailName(userEmail, { foo: 'bar' });

Limitations

  • SendGrid restricts the max number of emails we can send to 100/day
  • We can only send email (make sure this is clear when writing/formatting emails that we wont reply)
  • If too many sent emails go unopened, our emails will start getting marked as spam