All image attachments via System.Io.Stream and System.Uri
Brought to you by:
sheda0
I had a need to imbed an image in E-mail from a stream
and from a Uri. I implemented these features, I
also found a bug in Smtp.cs (CheckForError)
I also added a method called AddImageAndGetHtmlTag which
returns the proper html tag to add the the HtmlBody of
the message to display the attached image. To do this
I had to change AddImage to return a string.
I have attached the the modified version.
Enjoy!
source