1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/abstract/protocols/smtp-client
2020-12-06 19:44:54 +00:00
..
CMakeLists.txt cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
main.c format strings: ban %.*s as some platforms lack it 2019-11-04 13:49:14 +00:00
README.md abstract: allow completely generic instantiation and destruction 2019-06-26 14:33:34 +01:00

lws api test smtp client

Demonstrates how to send email through your local MTA

build

Requires lws was built with -DLWS_WITH_SMTP=1 at cmake.

 $ cmake . && make

usage

Commandline option Meaning
-d Debug verbosity in decimal, eg, -d15
-r recipient@whatever.com Send the test email to this email address
 $ ./lws-api-test-smtp_client -r andy@warmcat.com
[2019/04/17 05:12:06:5293] USER: LWS API selftest: SMTP client
[2019/04/17 05:12:06:5635] NOTICE: LGSSMTP_IDLE: connecting to 127.0.0.1:25
[2019/04/17 05:12:06:6238] NOTICE: email_sent_or_failed: sent OK
[2019/04/17 05:12:06:6394] USER: Completed: PASS