Hello support!
I'm starting to develop an application to read Pst Files (outlook) and convert them to Mime Message. I never had developed an app using Mime and I have one question related to embedded images in body message.
Follow my code to explanation:
var MimeMessage = Message.Content.GetMessageFile().ConvertToMimeMessage();
using (var Stream = new MemoryStream())
{
MimeMessage.Save(Stream);
Stream.Position = 0;
ImapMessage.Content.Load(Stream);
return ImapMessage;
}
The result is an email with almost all filled properties, except the images inline. I can see the inline content in Parts property but the final message does not contains the images. Inspecting the generated message, the
tag is correct but the image not is displayed.
... more content ...
<p class=MsoNormal align=center style='text-align:center'><span
style='color:black'><img border=0 width=573 height=217 id="Picture_x0020_2"
src="cid:image003.jpg@01D1A45F.A330FC80"
alt="cid:image003.jpg@01D11627.84DA7520"><o:p></o:p></span></p>
... more content ...
So, my doubt is how do I display the inline messages in a message body? I tried some ways to solve this problem and I have no idea to how to show images.
I appreciate any help to this question.
Regards.