Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.60/5 (3 votes)
See more:
Hello,

How to send email with embed image in gridview using c# asp.net?
I have a gridview with image field.

TileImage|Description1|Description2
/images/T1.jpg|abc1|abc2
/images/T2.jpg|xxx|xxx

Its my gridview data.

I have to send gridview through email using c# asp.net.
Image should be show in datagrid.

I am using html template for sending the email.

So,please help me, how to show or display image in email template with gridview.

Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted

You cannot use the GridView control in the email. You have to write the HTML to create the table in the email body yourself.
 
Share this answer
 
v2
 
Share this answer
 
Comments
Agarwal1984 23-Nov-15 0:38am    
Embed image is showing in Email Template but its not showing in grid or table.
Datatable its showing in email without image.
image its not displaying in image field but Description1 and Description2 are displaying.

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