1.2.4 • Published 2 years ago
@eversend/eversend-email-service v1.2.4
Installing
Using npm:
$ npm i eversend-email-serviceExample
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 no-reply@eversend.co
fromName is the name to appear in the title. default is Eversend
NOTE:
Eversend Email Serviceis not open ended is internal to Eversend Company sorry