node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



A email plugin for the Seneca Node.js toolkit

This module is a plugin for the Seneca framework. It provides email capability for actions. It is a customization of the seneca-mail plugin.

It is a good example of using Seneca action hooks to customize a plugin's behaviour - review the code in lib/postmark.js to see how this works.

For full usage documention, read the seneca-mail page.

This plugin uses directly to send email, so you'll need to create an account there to get it working. The postmark module is used to do the heavy lifting.


If you're using this module, feel free to contact me on twitter if you have any questions! :) @rjrodger

Current Version: 0.1.1

Tested on: node 0.10.6, seneca 0.5.6

Build Status

Quick example

var seneca = require('seneca')()
  if( err ) return console.log(err);
    role:    'mail',
    cmd:     'send',
    text:    'Hi There!'
    to:      '',
    from:    '',
    subject: 'Greetings!'

That's pretty much it.


npm install seneca
npm install seneca-mail
npm install seneca-postmark-mail

You'll need the seneca and seneca-mail modules to use this module - it's just a plugin extension.


Copy sendconf.example.js and add real configuration values, and then send a mail with:

cd test
node send-mail.js --seneca.log.print