Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This will listen for incoming emails on a server and then emit an event on success
branch: master
Failed to load latest commit information.
examples Update
lib Real Parsing support
src Real Parsing support
.gitignore first commit
.npmignore Added Email Body Parsing Support
LICENSE Added License File
Makefile first commit readme update
index.js first commit
package.json Real Parsing support

node.js email listener

This will allow you to create a simple email receiving server that will listen for new messages and then trigger an event. You can then parse through the message of the body any way you want.

Use the link above to test the app.


npm install email-listener


var emaillisten = require("email-listener");

//The optional argument will be the port to listen on
//(defaults to 25)

//Listener Event
emaillisten.on("msg", function(recipient, rawbody, parsed){

    //Whom the message is for

    //The raw contents of the message body

    //This is the parsed message as an object with useful and easy ways to work with the message


parsed message

This library is used to parse the message, please refer to it about what is returned in the parsed return in the callback. There will be more options to control this in future releases. For now, it just returns the parsed message with the default options.

Something went wrong with that request. Please try again.