Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 649 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 649 Bytes

campaign-mailgun

Mailgun email provider for Campaign

install

npm i campaign-mailgun -S

usage

using campaign.

var campaign = require('campaign');
var mailgun = require('campaign-mailgun');
var client = campaign({
  provider: mailgun({
    apiKey: 'YOUR_API_KEY',
    authority: 'https://example.com'
  })
});
client.send(...) // as usual

mailgun(options)

minimal configuration is involved.

options.apiKey

the API key from Mailgun.

options.authority

your domain's origin for relative links. can also be provided on client.send calls.

license

mit