Mail client for the-framework


Keywords
the
License
MIT
Install
npm install the-mail@3.1.3

Documentation

the-mail

Build Status npm Version JS Standard

Mail client for the-framework

Installation

$ npm install the-mail --save

Usage

'use strict'

const theMail = require('the-mail').default

async function tryExample () {
  const mail = theMail({
    service: 'sendgrid',
    key: 'xxxxxxxxxxx'
  })

  await mail.send({
    from: 'the-sender@example.com',
    to: 'the-receiver@example.com',
    subject: 'This is the title',
    content: 'This is the content of the mail'
  })
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links