Click here to Skip to main content
15,903,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used in my project a line like below for mailing...

htmltable +
XML
=
"<tr><td><table><tr>
<td rowspan='2' >
<img src=/'" + _SenderImagePath + "' Height='55px' Width='52px'/>
</td><td valign='top'  ><a href='" + WebURL + "?EmailId=" + _To + "'>" + _Sender + "</a></td></tr><tr><td>&nbsp;</td>";




within the table and all ....
But for image it is not displaying ... but the path is retrieved properly in _SenderImagePath can u please check what is the error I felt may be an syntax error and tried in many ways can u help?

this code is in code behind so there is some syntax error in this please help.. to be even more precise... i have the line as above.
Posted
Updated 4-Apr-12 2:12am
v5

Not very good but this should give you an idea Embed image in Email - ASP.NET , C#[^]
 
Share this answer
 
use System.Net.Mail.Attachment
 
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