1.2.0 • Published 2 years ago
npm-mailer v1.2.0
NPM-Mailer
This package has a powerful laravel back-end application for posting mail service.
We will never send you unsolicited 'junk' email, or share your data with anyone else who might.
Package developed by S.Katheeskumar
Installation
Install using npm
# install it via npm
npm install npm-mailer --save
OR
npm i npm-mailer
GitLeaf Officially uses npm-mailer
for their mailing module.
Usage
# 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
javascript
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
TypeScript
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.
Browser Support
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
License
This project is licensed under the terms of the @Katheesh.