Socket
Socket
Sign inDemoInstall

mailer

Package Overview
Dependencies
2
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mailer

send emails from node.js to a smtp server, simple as cake


Version published
Weekly downloads
4K
increased by11.55%
Maintainers
0
Install size
544 kB
Created
Weekly downloads
 

Readme

Source

#v0.4.51
###send emails from node.js to your smtp server, simple as cake.

Installing npm (node package manager)

 curl http://npmjs.org/install.sh | sh

Installing say.js

 npm install mailer

FEATURES

  • super simple api
  • emails are blasted out asynchronously
  • uses connection pooling per SMTP server
  • super simple built in templates using Mustache.js

REQUIRES

  • SMTP Server

USAGE

  var email = require("../lib/node_mailer");

  for(var i = 0; i < 10; i++){

    email.send({
      host : "localhost",              // smtp server hostname
      port : "25",                     // smtp server port
	  ssl: true,						// for SSL support - REQUIRES NODE v0.3.x OR HIGHER
      domain : "localhost",            // domain used by client to identify itself to server
      to : "marak.squires@gmail.com",
      from : "obama@whitehouse.gov",
      subject : "node_mailer test email",
      body: "Hello! This is a test of the node_mailer.",
      authentication : "login",        // auth login is supported; anything else is no auth
      username : "dXNlcm5hbWU=",       // Base64 encoded username
      password : "cGFzc3dvcmQ="       // Base64 encoded password
    },
    function(err, result){
      if(err){ console.log(err); }
    });
  }

USING SSL

node_mailer SSL connections (not TLS / STARTTLS, just SSL from the beginning of the connection). To use it, add an option ssl: true. See usage above.

Authors

Marak Squires, Elijah Insua, Fedor Indutny, Bradley Meck

FAQs

Last updated on 17 May 2011

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