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

webmail4dev

0.1.12 • Public • Published

webmail4dev

webmail4dev is a CLI/service which starts a local smtp server (with no auth) and a web server that displays all emails received by the smtp server, meant for testing environments.

It is meant to be used as an web-based fake mail server for testing applications that send emails, such as SharePoint. Using such a mail server ensures that emails are not sent to real mailboxes, while making it easy for test users to read all outgoing emails at once.

It can be seen as a web alternative to Papercut or smtp4dev.

screenshot.png

Installation

Requires nodejs 6.X minimum.

For Linux

Install and run the application :

# install the cli globally 
sudo npm install -g webmail4dev
 
# either run the program in current thread  
# sudo is necessary to open port 25 
sudo webmail4dev
 
# or if you want to run it as a service, then start it 
sudo webmail4dev --install
sudo service webmail4dev start

For Windows

os-service dependency compiles C++ code during install using node-gyp, which requires python to be installed and it's path to be registered in the node environment. The easiest way to meet these requirements on windows is to install windows-build-tools.

# FOR WINDOWS ONLY 
# requires "Run as administrator" prompt 
npm install --global --production windows-build-tools
 
# install the cli globally 
npm install -g webmail4dev
 
# either run the program in current thread 
webmail4dev
 
# or if you want to run it as a service 
# requires "Run as administrator" prompt 
webmail4dev --install
net start webmail4dev

Options

Run this command to see a list of all available options:

webmail4dev --help

Keywords

none

install

npm i webmail4dev

Downloadsweekly downloads

1

version

0.1.12

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar