Package developed by S.Katheeskumar
# install it via npm
npm install @katheesh/mailer-js --save
OR
npm i @katheesh/mailer-js
GitLeaf Officially uses mailer-js
for their mailing module.
# to = Reciever Email Address
# from = Sender Email Address
# subject = Email Main Subject
# title = This title appear on top of body in h2
# body = add this parameter like plain text or html or markdown
var Mailer = require("mailer-js");
var Data =
{
"to": "[email protected]",
"from":"[email protected]",
"subject": "Sample Mail from mailer-js",
"title": "Sample Mail from mailer-js",
"body" : "Hello there, I'm Katheeskumar.
I love coding and proud to present this open source application"
}
// Html / Plaintext mailing
console.log(Mailer.prepare(Data)) // i'ts return json format
// Markdown mailing
console.log(Mailer.prepareMarkdown(Data)) // i'ts return json format
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
This project is licensed under MIT of @Katheesh.