Skip to content

Katheesh/MailerJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.