Pronto Email Service
For sending emails. Currently supports AWS SES and SendGrid.
API
Exposes a single method sendEmail(email, cb)
.
Email fields are defined in the MailComposer documentation, most importantly you will need to
and from
addresses, a subject
, and a text
and/or html
body.
email =
Setup
Initialize the email service with a config
object, declaring and configuring one of the available providers.
ProntoEmailService = require 'pronto-email-service' ProntoEmailServiceconfig
AWS SES config
Note: Region and access keys may be defined by environment variables (e.g. for a Lambda service).
config =
SendGrid config
config =