更新时间:2022-12-03 09:18:59
为了确保客户端看到徽标,您必须将其作为嵌入式图像发送:使用嵌入式图像发送电子邮件 [ ^ ] - 如果你把它作为链接发送,mos电子邮件系统不会显示它,因为网络钓鱼者使用图像链接来确定实时电子邮件地址。
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.
}
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.