On Tue, 12 Dec 2017, Sean MacLennan wrote:

The names might be better ;) But it makes it clear that the options are stricter than the mail heading.

Thanks! I went with this approach:

#define FROM_ADDR    "<[email protected]>"
#define TO_ADDR      "<[email protected]>"
#define CC_ADDR      "<[email protected]>"

#define FROM_MAIL "Sender Person " FROM_ADDR
#define TO_MAIL   "A Receiver " TO_ADDR
#define CC_MAIL   "John CC Smith " CC_ADDR

The updated example can now be seen at:

  https://curl.haxx.se/libcurl/c/smtp-mail.html

--

 / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to