Click here to Skip to main content
15,900,707 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
image is not displayed in image column of gridview in gmail. please help.

What I have tried:

<Columns>
        <asp:TemplateField HeaderText="Email">
            <ItemTemplate>
                <asp:HyperLink ID="lnkEmail" runat="server" Text='<%# Eval("Email") %>'   NavigateUrl='<%# Eval("Email", "mailto:{0}") %>' />
            </ItemTemplate>
Posted
Comments
F-ES Sitecore 14-May-18 5:06am    
Mail clients don't automatically download external resources like images as they can be used for tracking you and other bad things. If you want to use images in emails you need to attach the images to the email itself then link to the embedded version. If you google "c# embed image in email" you'll probably find examples of how to do this.
Member 13802222 14-May-18 15:51pm    
thank you for replying.

1 solution

Please visit this link it will help you.

https://www.c-sharpcorner.com/blogs/download-and-embedding-images-in-your-emails-using-smtp-client-with-c-sharp
 
Share this answer
 
Comments
Member 13802222 17-May-18 12:05pm    
thank you

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