@eversend/eversend-email-service
v1.2.4
Published
The email package for eversend
Downloads
50
Readme
Installing
Using npm:
$ npm i eversend-email-service
Example
const EversendMail = require("eversend-email-service");
For ES6
import EversendMail from "eversend-email-service";
Then use the new keyword to create the class instance supplying a string of valid url and valid token.
// Create class instance
let mail = new EversendMail(${url}, ${token}, ${initiator});
data = mail.sendMail(
${theme},
${to},
${subject},
${body},
${from} ,
${fromName}
)
Where =>
theme
is the theme you want to use leave blank if you feel you want to do the design you self.
Theme examples are center
, left
,left_with_login
to
is a valid email we need to deliver the email to
subject
is the subject of the email
body
that is the body of the email. Please you are advised to please go the the templates in the git repo
and get the body design needed before dispatch to be uniform
from
Is the person the email is coming from. default is [email protected]
fromName
is the name to appear in the title. default is Eversend
NOTE:
Eversend Email Service
is not open ended is internal to Eversend Company sorry