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.
Requires nodejs 6.X minimum.
Install and run the application :
# install the cli globallysudo npm install -g webmail4dev# either run the program in current thread# sudo is necessary to open port 25sudo webmail4dev# or if you want to run it as a service, then start itsudo webmail4dev --installsudo service webmail4dev start
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" promptnpm install --global --production windows-build-tools# install the cli globallynpm install -g webmail4dev# either run the program in current threadwebmail4dev# or if you want to run it as a service# requires "Run as administrator" promptwebmail4dev --installnet start webmail4dev
Run this command to see a list of all available options: