• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# lws api test smtp client
2
3Demonstrates how to send email through your local MTA
4
5## build
6
7Requires lws was built with `-DLWS_WITH_SMTP=1` at cmake.
8
9```
10 $ cmake . && make
11```
12
13## usage
14
15Commandline option|Meaning
16---|---
17-d <loglevel>|Debug verbosity in decimal, eg, -d15
18-r <recipient@whatever.com>|Send the test email to this email address
19
20
21```
22 $ ./lws-api-test-smtp_client -r andy@warmcat.com
23[2019/04/17 05:12:06:5293] USER: LWS API selftest: SMTP client
24[2019/04/17 05:12:06:5635] NOTICE: LGSSMTP_IDLE: connecting to 127.0.0.1:25
25[2019/04/17 05:12:06:6238] NOTICE: email_sent_or_failed: sent OK
26[2019/04/17 05:12:06:6394] USER: Completed: PASS
27
28```
29
30