2.2.7 • Published 5 years ago

quang-email-service v2.2.7

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

Introduction

Send email easily with sendgrid, mandrill and mailgun api

Installation

npm install --save quang-email-service

Usage

In Javascript:

const MailService = require('quang-email-service').default

In Typescript:

import MailService from 'quang-email-service'
const email = new MailService({
    sendgrid: {
        apiKey: 'sendgrid-apiKey'
    },
    mandrill: {
        apiKey: 'mandrill-apikey'
    },
    mailgun: {
        apiKey: 'mailgun-apikey',
        domain: ''
    }
});

...

email.send({
    from: from_email,
    to: to_email,
    subject: 'email-subject',
    html: 'email content in HTML'
})
2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago