New Feature: Admin Mailer / Email support #83
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Adding this as a new feature I think we need if anyone wants to take a run at a PR.
Basically: a way for a site owner to get an email when important things happen (contact us form, sign up, purchase). I added this in my private fork and it's super helpful. However, not happy with my library choice, so I'd want a cleaner version here.
Part 1: Mailer
A typescript file that can send emails to the website owner. Basically expose
sendAdminsEmail(subject, html_body)
. No opt if the user hasn't set up correct env configs.I built this into my own fork, but made the mistake of using AWS SES APIs which are overly complex and host specific. SMTP crews and node mailer are way more flexible.
Part 2: Integrate into key places in the app
Add integrations into places where the site admin might want to be notified:
Also add env var for
admin_emails
. Defaults to all, but you can override it in env to only get a subset of these.Part 3: Docs
Document the env vars and integration above in the README
The text was updated successfully, but these errors were encountered: