On Tue, 12 Dec 2017 15:35:16 +0100 (CET)
Daniel Stenberg <[email protected]> wrote:

> 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
> 

Yes, that example is much better! And much cleaner than what I did ;)

FWIW, my code is now working. What I wanted to do is forward specific
messages from my home account to my gmail account. libcurl made it so
much easier than coding it from scratch.

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

Reply via email to