Re: smtp?
DINH Viêt Hoà <[email protected]>
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <etPan.427275a2.123375a8.774e@utopia> |
Luke Ehresman wrote :
> Thanks for pointing me to smtpsend.c, that was very helpful. I also found a
> lot of help in compose-msg.c. However, now I have a mailmime structure
> composed, but can't figure out how to send it to smtp. How can I convert
> the mailmime structure to a C string? mailsmtp_data_message() needs the
> data section of SMTP to be sent in a char* format.
you'll have to use :
int mailmime_write_mem(MMAPString * f, int * col,
struct mailmime * build_info);
(mailmime_write_mem.h)
example :
MMAPString * str;
int col;
/* build the mime structure */
col = 0;
mailmime_write_mem(str, &col, mime);
printf("here the renderered message : \n%s", str->str);
--
DINH V. Hoa,
<< mon chef est venu me chercher à la machine à café l'autre jour:
"je savais bien que je vous trouverais ici" >> -- s.
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r