Skip to content

iwanjunaid/simple-imap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-imap

Simple imap listener for Node.js.

Installation

npm install simple-imap

Usage

var SimpleImap = require('simple-imap');

var options = {
	user: '<your username>',
	password: '<password>',
	host: '<imap host>',
	port: 993,
	tls: true,
	mailbox: 'INBOX'
};

var simpleImap = new SimpleImap(options);

simpleImap.on('error', function(err) {
	console.log(err);
});

simpleImap.on('mail', function(mail) {
	console.log(mail);
});

simpleImap.start();

About

Simple imap listener for Node.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published