Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.43 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.43 KB

Mail-TS

Easy to setup, simple, smtp server written in typescript.

Installation

npm

$ npm i -g @shamxl/mail-ts

mannual

$ git clone https://github.com/shamxl/mail-ts
$ cd mail-ts
$ npm rum build
$ chmod +x ./dist/index.js
$ npm link

Usage

$ mail-ts --help
Options:
      --help            Show help                                      [boolean]
      --version         Show version number                            [boolean]
  -p, --port            Set port for smtp server, default 2525
                                                        [number] [default: 2525]
  -h, --hostname        Set hostname for smtp server, default localhost
                                                 [string] [default: "localhost"]
  -u, --users           Set users for smtp server eg: mail-ts -u admin guest
                                            [array] [default: ["admin","guest"]]
  -v, --verbose         Set debug mode, default to false
                                                      [boolean] [default: false]
  -m, --welcomeMessage  Set welcome message, default to `Mail Ts ready.`
                                            [string] [default: "Mail Ts ready."]
  -s, --silent          Disable all loggings except emails, default to false
                                                      [boolean] [default: false]

Example usage

$ mail-ts