Setting custom headers in outgoing message using c-client
"David C. Choweller" <[email protected]> Mon, 21 May 2012 20:02:21 +0000
| Newsgroups | gmane.mail.imap.uw.c-client |
|---|---|
| Message-ID | <90B29655EB4B174884D8C1831970D5AE04E328@013-BR1MPN1-023.MGDPBI.global.pvt> |
I would like to use the c-client library to set custom headers in an outgoing message (sent using smtp_mail() function). Which structure members of the BODY or ENVELOPE do I need to set to do this? I tried using the PARAMETER *parameter member of the BODY. However, this does something I don't want it to. For example, if I set body->parameter->attribute <-- "X-Custom-Header" body->parameter->value <-- "X-Custom-Value" body->parameter->next <-- NULL What I get in the resulting email message is: Content-Type TEXT/PLAIN; X-Custom-Header=X-Custom-Value In other words, the parameter and value I specified have been added to the "Content-Type" header, rather than creating a new header "X-Custom-Header". ________________________________ _______________________________________________ Imap-uw mailing list [email protected] http://mailman2.u.washington.edu/mailman/listinfo/imap-uw