图像未在ASP.NET中显示在电子邮件中 [英] Image is not getting display on email in ASP.NET

查看:79
本文介绍了图像未在ASP.NET中显示在电子邮件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我发送的电子邮件模板包含图片作为徽标。



现在的问题是,当我检查我的Gmail收件箱时,图像没有显示。



请建议。



我尝试过:



< img src =〜/ images / LogoEmail.png/>

< div style =border-top:3px solid#22BCE5>& nbsp;< / div>

< div style =background-color: skyblue>

< div style =font-family:Arial; font-size:10pt>

解决方案

尝试在CDN或您的域中上传徽标并提供图像的完整地址,例如

 <   img     src   =  http://www.domainorcdnaddress.com/images/im agename.png >  



相对地址无效情况下。


Hi ,

I am sending an email template which contain image as a logo.

Now problem is that , when i check my gmail inbox that image is not getting displayed.

Please suggest.

What I have tried:

<img src="~/images/LogoEmail.png" />
<div style="border-top:3px solid #22BCE5">&nbsp;</div>
<div style="background-color:skyblue">
<div style="font-family:Arial;font-size:10pt">

解决方案

Try to upload in CDN or in Your Domain that logo and Give Complete address of the image like

<img src="http://www.domainorcdnaddress.com/images/imagename.png">


Relative address can not work in your case.


这篇关于图像未在ASP.NET中显示在电子邮件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆