Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

I sending mail using C# Console application. But I want to send company logo after Regards in mail body. Company logo is coming only in my local machine. If i sent that mail to any others mail logo was not coming.

How to achieve that???

What I have tried:

Web.config:

<add key="Body" value="Hi,<br><br>Please find logo and attachment {0}<br><br>Regards,<br>mGrid Tech<br><img src=cid:logo>">

public void SendMail()
{
//here I'm writing the all code for send mail
//But I'm sending encrypted mail.How encrypt that image and attach to AlternateView class.
}
Posted
Updated 4-Jul-16 20:06pm
Comments
Dave Kreskowiak 4-Jul-16 23:22pm    
How did you put the image into the email message? What does the resulting HTML look like?
Karthik_Mahalingam 5-Jul-16 0:01am    
make sure that the logo image is present inside the application folder.

1 solution

To be sure that the client sees the logo, you have to send it as an embedded image: Sending Email Using Embedded Images[^] - if you send it as a link, most email systems will not display it, as phishers use image links to determine "live" email addresses.
 
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