Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 2.42 KB

README.md

File metadata and controls

71 lines (51 loc) · 2.42 KB

Mailer JS

This package has a powerful laravel back-end application for posting mail service.

Package developed by S.Katheeskumar


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": "[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

Browser Support

Chrome Firefox Safari Opera Edge IE
Latest ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔ 11 ✔


License

This project is licensed under MIT of @Katheesh.