Re: How to send MIME messages via SMTP using libetpan?

"DINH Viêt Hoà" <[email protected]> Sat, 10 Nov 2007 09:52:32 +0100
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
On 11/10/07, Stanislaw T. Findeisen <[email protected]> wrote:
> 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?

Hello,

You have both functions to convert to strings and to file descriptor.

http://dinh.viet.hoa.free.fr/wiki/index.php?title=Mailmime_Generating_Messages

Regards,

-- 
DINH Viêt Hoà

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