Mailframe is a small library that helps organize email templates, and easily dispatch emails with dynamic templating built-in retries, and more.
It was originally developed for use with MessageRaft but it can also be used without (check the custom dispatcher example)
- π mustache.js template syntax
- π Automatic retries on 408, 413, 429, 500, 502, 503, 504 status codes (using ky)
- π¦ Automatic conversion of html to text and dispatch both
MessageRaft needs to be setup separately if using the built-in method of dispatching emails
Follow the instructions found here to install and setup MessageRaft.
$ npm install @mailframe/mailframe
OR
$ yarn add mailframe
Please checkout the example here for usage.
In case you don't want to use MessageRaft and instead you prefer to use an email provider directly you can do that. Please check the example here for details