1.0.1 • Published 4 years ago

mailgun-tiny v1.0.1

Weekly downloads
7
License
ISC
Repository
github
Last release
4 years ago

#Mailgun send My approach to a tiny mailgun sender wrapper using zero dependencies.

Install

npm i mailgun-tiny

Usage

const domain = 'example.com';
const apiKey = 'api-ofsjhdf971h2orjwer';
const sendMail = require('mailgun-tiny')(domain, apiKey);

sendMail({
    from: 'test@example.com',
    to: 'john.doe@example.com',
    subject: 'Hey there',
    text: 'How are you doing?'
});

Thats it.

xoxo

1.0.1

4 years ago

1.0.0

4 years ago