Page 1 of 1

Save HTML

Posted: Thu Jul 15, 2010 12:27 pm
by Michel Guite
Hi,

I need to send an e-mail in HTML format. Currently, I use SaveHTML and then I load it in a stream.

I would rather like to save my content as HTML directly to a stream. Is there currently a way to do this?

Thank you,

Michel

Posted: Thu Jul 15, 2010 12:50 pm
by Michel Guite
I would like to add that my image can't be save on the harddrive but in a variable or something like that.

I understand that SaveHTMLToStream would do the trick but it save image on hardrive if I'm not mistaken...am I?

Posted: Thu Jul 15, 2010 1:05 pm
by Sergey Tkachenko
This is an example for saving HTML emails using Indy components: http://www.trichview.com/forums/viewtopic.php?t=11
Not only HTML is saved in a stream, but pictures are saved in memory as well (using OnSaveImage2 event)