Email Notifications

You can send email notifications to your users from anywhere in your application.

Emails use a JSON template for content - no need to wrestle with HTML tables. The JSON is then injected into an email template located in the /emails directory.

await mail.send({
‚Äč
to: 'name@email.com,
template: 'welcome',
content: {
name: 'John',
plan: 'startup',
price: '$49'
}
});

You can also use a custom HTML template by passing the name of the file as a custom value.