15.4.1 • Published 5 years ago

@the-/mail v15.4.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@the-/mail

npm Version

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({
    key: 'xxxxxxxxxxx',
    service: 'sendgrid',
  })

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

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

API Guide

class

function

License

This software is released under the MIT License.

Links