1.0.4 • Published 4 years ago
owneymail v1.0.4
Owneymail
powered by owneymail.com
Email marketing via Amazon SES, Sendgrid, Mailchimp.
Installation
Install the dependencies and devDependencies and start the server.
$ npm install owneymail
USAGE
const owneymail = require('owneymail');
const owneyService = new owneymail(OWNEYMAIL_API_KEY)
owneyService.templateCode("TEMPLATE_CODE")
.fromName("Lorem Ipsum")
.fromEmail("hi@loremipsum.com")
.subject("Lorem Ipsum Test Email")
.context({"samplecontext1": "samplevalue1"})
.to(["one@loremipsum.com", "two@loremipsum.com"])
.cc(["alpha@loremipsum.com", "beta@loremipsum.com"])
.bcc(["un@loremipsum.com", "duex@loremipsum.com"])
.send();