/maildawg

🐶 Simple email service for sending welcome emails, reset password mails etc.

Primary LanguageHTML

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.

Getting Started

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) => {});
  1. Access service over http
https://username.lib.id/maildawg/send/:bg

Change Log

0.0.2 - Latest

Thanks

Stdlib, Node Mailer, Ethereal Mail, Response HTML Email