1.0.2 • Published 4 years ago
@katheesh/mailer-js v1.0.2
Mailer JS
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
Support & Become a Patron!
Installation
Install using npm
# 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.
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("mailer-js");
var Data =
{
"to": "your-email@sample.com",
"from":"no-replay@domain.com",
"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
TypeScript
import * as Mailer from 'vue-mailer';
var Data =
{
"to": "your-email@sample.com",
"from":"no-replay@domain.com",
"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"
}
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.