Mailgun email provider for Campaign
npm i campaign-mailgun -S
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
minimal configuration is involved.
the API key from Mailgun.
your domain's origin for relative links. can also be provided on client.send
calls.
mit