Last post Jun 14, 2007 04:42 AM by Charlie
Jun 13, 2007 12:26 PM|Charlie|LINK
I am trying to attach dynamic images to emails. Right now I can display the dynamic images on a web page, but how do I attach them to an email? I see that system.net.mail can take in IO.Stream, but how do I get my dynamic image into a stream?
Jun 13, 2007 01:29 PM|jackyang|LINK
Use the HttpHandler to handle the image generation in the email. See this article for image generation:
In your email body, include an img element and source linked to this file, somethin like: <img src=www.mysite.com/dynimg.ashx?id=123/>
Jun 14, 2007 04:42 AM|Charlie|LINK
Sorry, I should have made my question clearer. I need to actually embed the images into the email therefore I need to either save them on the disk( which I don't want to) or convert the dynamic images to memorystream so they can be added as attachments.