Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I am making use of a web service to retrieve an image / logo. This image is used within a mail message item. The mail message item is generated from a VSTO add-in within Outlook. The problem is how can I embed the image within the mail item body.

I do not want to save the image to the client PC. Currently I am doing the following (setting my own HTML within the mail item body), but if the image changes, all the client work stations will have to change to, and this will be very cumbersome.

img tag ... src="" + Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly
(typeof(Class1)).CodeBase).Substring(6) 
+ @"\image.jpg" alt="image.jpg"


Many thanks in advance.
Kind regards,
Posted
Updated 23-Mar-10 1:47am
v4

Have a look here, Embed HTML Email Images[^]
 
Share this answer
 
You need to add the image as a LinkedResource, then just reference it in an <img> tag.

http://www.systemnetmail.com/faq/4.4.aspx[^]

Nick
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900