src/mailx.c


Log

Author Commit Date CI Message
humphreyj 65bec04b 2018-06-05T14:37:13 Read the email body from stdin.
humphreyj 5963fb1f 2018-06-03T17:47:15 Fixed a number of problems with the mailx example program that caused it to fail sending emails. Added the address type to the address structure. Added a required FROM address parameter. Fixed two instances of misuse of the strtok function which prevented correct string parsing. Convert the server, port, user pass, and from parameters to dynamically allocated strings. Remove default server settings and make server a required field.
humphreyj 4f0c3c72 2018-06-01T16:09:37 Add an implementation of the POSIX mailx utility as an example of using the library. It only implements the mailx utility in send mode. It also has additional option arguments which allows the caller to specify the connection security, authentication mechanism, server parameters, and optional flags corresponding to the SMTP library parameters.