sendEmail
dispatches an HTML-based email to be sent to an specific email address.
await email.sendEmail(
'geoff@example.com',
'Hi Geoff!',
`<p> Welcome to your new account! </p>`
)
sendTransactional
dispatches a transaction email,
i.e. the template is setup on app.sendgrid.com
to be sent to a specific email address
await email.sendTransactional(
'geoff@example.com',
'Hi Geoff!',
'd-abcdefghijklmnop',
{
firstName: 'Geoff',
body: 'Welcome to your new account!',
action: 'Log in',
href: 'https://example.com/login',
}
)
Generated using TypeDoc
A service for sending html or transactional emails powered by Sendgrid. It is setup to disable as much of Sendgrid's tracking as possible.