Skip to content

This mailing application package created to send mails by JavaScript

Notifications You must be signed in to change notification settings

Katheesh/npm-mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM-Mailer

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 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

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

License

This project is licensed under the terms of the @Katheesh.

About

This mailing application package created to send mails by JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published