@eversend/eversend-email-service

1.2.4 • Public • Published

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 no-reply@eversend.co

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

License

MIT

Package Sidebar

Install

npm i @eversend/eversend-email-service

Weekly Downloads

18

Version

1.2.4

License

ISC

Unpacked Size

5.47 MB

Total Files

43

Last publish

Collaborators

  • satowind
  • kasendwa
  • stoneatwine