Package developed by S.Katheeskumar
# install it via npm
npm install npm-mailer --save
OR
npm i npm-mailer
GitLeaf Officially uses npm-mailer
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("npm-mailer");
var Data =
{
"to": "your-email@sample.com",
"from":"no-replay@domain.com",
"subject": "Sample Mail from vue-mailer",
"title": "Sample Mail from vue-mailer",
"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
import * as Mailer from 'npm-mailer';
var Data =
{
"to": "your-email@sample.com",
"from":"no-replay@domain.com",
"subject": "Sample Mail from vue-mailer",
"title": "Sample Mail from vue-mailer",
"body" : "Hello there, I'm Katheeskumar. I love coding and proud to present this open source application"
}
Mailer.prepare(Data); // print and return json response.
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
This project is licensed under the terms of the @Katheesh.