Mail dawg 🐶

Mail dawg 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.

Install

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

Usage

Feel free to modify the templates (inside `tmpl`) as you wish.

1. 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) => {});

2. Access service over http

https://username.lib.id/maildawg/send/:bg

Change Log

0.0.3 - Latest

Thanks

Thanks Stdlib, Node Mailer, Ethereal Mail, Responsive HTML Email