curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Sending email to gmail account

From: Sean MacLennan <seanm_at_seanm.ca>
Date: Thu, 14 Dec 2017 19:37:59 -0500

On Tue, 12 Dec 2017 15:35:16 +0100 (CET)
Daniel Stenberg <daniel_at_haxx.se> 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 "<sender_at_example.org>"
> #define TO_ADDR "<addressee_at_example.net>"
> #define CC_ADDR "<info_at_example.org>"
>
> #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
Received on 2017-12-15