We have a forum solution which allows people to submit posts via email. Currently, as the mail is parsed, images are just added as attachments to the post. What we would like to do is to parse the email and take embedded images from the mail and turn them into inline images in the output HTML. We need to support any Email client Outlook, Hotmail, Gmail etc
Outlook original Email:
<img id="Picture_x0020_1" src="cid:image001.jpg@01CD172C.038D3C80">
The desired result is that we save out the attachment and have the src as
<img id="Picture_x0020_1" src="http://www.site.com/default.aspx?action=ViewAttachment&paid=594">
I am aware that we can get image through something like: .NET How to extract embedded image from email message?
Do we need to crack open the RegEx or are there libraries that simplify this? I am sure that we aren't the only people who want to render an Email as HTML