How to send MIME messages via SMTP using libetpan?
"Stanislaw T. Findeisen" <[email protected]> Sat, 10 Nov 2007 07:53:40 +0100
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I am trying to send a MIME message over SMTP. This MIME message can
contain several attachments etc.
The problem I have is that MIME writing functions take only file
descriptors as their output destinations. Right? For instance this one:
int mailmime_write(FILE * f, int * col,
struct mailmime * build_info);
This seems to be somewhat incompatible with SMTP functions:
int mailsmtp_data_message(mailsmtp * session,
const char * message,
size_t size);
The question is: how to send MIME message via SMTP? Do I have to make
this file descriptor --> string conversion myself?
Thanks.
STF
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/