Click here to Skip to main content
15,885,920 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have images in Server i want to put some link or Path of image in email when email send through outlook the image should appear from server

I want just link or path or HTML tag which should be displayed the image from server
Posted

1 solution

Set MailMessage.IsBodyHtml Property[^] to true.
Example - How do I send a simple Html email?[^]

In the MailMessage.Body Property[^], just set the HTML.

For image link, do like...
C#
message.Body = "<a href='path_of_image'>ImageName</a>";
 
Share this answer
 
v2

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