I would like to insert images into an email that is in HTML form. I can see that directly embedding an image won't produce a good result in Outlook, so I have to find another way. using a server to host the image is also out of the question as I do not have a server for that. However, when I looked at the original content of an email sent via Outlook, i see something like this.
--_004_F8160BEB14FE9D41AE00F41E46A5412B109DEBCFAAdruexc02dillo_
Content-Type: image/gif; name="image001.gif"
Content-Description: image001.gif
Content-Disposition: inline; filename="image001.gif"; size=3038;
creation-date="Tue, 01 Oct 2013 14:30:35 GMT";
modification-date="Tue, 01 Oct 2013 14:30:35 GMT"
Content-ID: <image001.gif@01CEBE91.4373C900>
Content-Transfer-Encoding: base64
R0lGODlhbgA6AOfRAMQAEMUBEcUCGMYFGccJGsMWGMQYGcUaGsUaIMYcIcgeIsceKMkfI8ggKcoh
KcsjKswkK8wlMcksK8gsMMotLMotMcsuMswwM80xNM0xOc8yNc4zOs80O9E1PFZYVc06PM48Pc48...
and so on. I also see this in the HTML :
<img width=3D110 height=3D58 id=3D"Image_x0020_1" src=3D"cid:image001.gif@01CEBE91.4373C900" alt=3Dimage001>
What I understand from this is that the image is somehow inserted into the email and then refered to in the HTML using the cid proterty.
My question is this, using the .net objets MailMessage, is there a way to actually do this ? If so, how can I 'embed' image, get the cid it uses and insert into my html message ?
Thanks,