Socket
Socket
Sign inDemoInstall

periodicjs.core.mailer

Package Overview
Dependencies
231
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    periodicjs.core.mailer

nodemailer transport loader for periodicjs


Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

periodicjs.core.mailer

Periodic's Code mailer module exports a single function that asynchronously returns a node mailer transport to send transactional emails with.

API Documentation

Installation

$ npm install periodicjs.core.mailer

This is a part of Periodic's core.

Usage

Sending Emails

JavaScript

var CoreMailer = require('periodicjs.core.mailer'),
	sampleemail ={
		to: "user@example.com",
		cc: "service@example.com",
		subject: "sample email test",
		generateTextFromHTML: true,
		html: "<h1>Welcome User</h1><p>email rocks</p>"
	},
	emailtransport;

	CoreMailer.getTransport({
		appenvironment: 'development'
	}, function (err, transport) {
		if (err) {
			console.error(err);
		}
		else {
			emailtransport = transport;
			emailtransport.sendMail(sampleemail,function(err,result){console.log("err",err,"result",result)})
		}
	});

##API

CoreMailer.getTransport(options,callback); //callback(err,nodemailertransport);

##Development Make sure you have grunt installed

$ npm install -g grunt-cli

Then run grunt watch

$ grunt watch

For generating documentation

$ grunt doc
$ jsdoc2md lib/**/*.js > doc/api.md

##Notes

Keywords

FAQs

Last updated on 26 Feb 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc