is a simple service for sending emails from your app. Primarily intended for sending welcome emails, alerts, password reset, verify account emails etc.
Comes with a really simple responsive HTML email template.
To use the mail dawg service for your own app, simply create a service from the source to your stdlib account.
Its super simple to run the service as a bg worker with Stdlib - just append :bg
to the send
endpoint.
Fork Source
Feel free to modify the templates (inside tmpl
) as you wish.
- Call the service from your app
const lib = require('lib')
let mail_data = {
to: "bob@gmail.com",
type: "reset",
subject: "Password reset",
data: {
reset_url: "your-url-with-token"
}
}
lib({bg: true}).username.maildawg.send(mail_data, (err, response) => {});
- Access service over http
https://username.lib.id/maildawg/send/:bg
0.0.2 - Latest