-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake-smtp.bat
26 lines (26 loc) · 1.12 KB
/
fake-smtp.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@REM fake-smtp-server is a nodejs application
@REM
@REM Usage:
@REM fake-smtp-server [OPTIONS] [ARGS]
@REM
@REM Options:
@REM -s, --smtp-port [NUMBER] SMTP port to listen on (Default is 1025)
@REM -h, --http-port [NUMBER] HTTP port to listen on (Default is 1080)
@REM -w, --whitelist STRING Only accept e-mails from these adresses.
@REM Accepts multiple e-mails comma-separated.
@REM -m, --max [NUMBER] Max number of e-mails to keep (Default is 10)
@REM -a, --auth [String] Authentication details in USERNAME:PASSWORD format
@REM Ports of 25, 465 or 587 (unencryped/SSL/TSL)
fake-smtp-server --smtp-port 25 --http-port 10080 --max 10
@REM
@REM You can filter emails with the following parameters:
@REM from: filter sender
@REM to: filter recipient
@REM since: filter email date
@REM until: filter email date
@REM Example:
@REM
@REM GET http://localhost:1080/api/[email protected]&[email protected]&since=2017-09-18T12:00:00Z&until=2017-09-19T00:00:00Z
@REM Removing all received email
@REM To remove all emails without restarting the server:
@REM DELETE http://localhost:1080/api/emails