15.4.1 • Published 5 years ago
@the-/mail v15.4.1
@the-/mail
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.