使用Asp.net邮寄网页 [英] Mailing a Web page using Asp.net

查看:104
本文介绍了使用Asp.net邮寄网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!!!!
我正在使用asp.net发送邮件,但问题是
我是通过从数据库中获取数据来用图像和数据填充数据列表的,图像是用"handler.ashx" 填充的,在数据​​列表中,我使用了"img" html标签来显示图像,我运行时在浏览器中显示图像,但问题出在邮件中,图像未显示
请帮帮我!
先进的Thanx

Hi to All !!!
I am sending a mail using asp.net but the problem is
"I am filling the datalist with Images and Data by fetching from database,and images i am filled with "handler.ashx" ,in datalist i have taken a "img" html tag to display the image,images were displaying in browser when i runs,but the problem is in mail the images were not displaying
pls help me out!!
Thanx in Advance

推荐答案

由于多种原因,图像可能会被过滤/破坏.例如,如果客户端正在请求图像源的ashx,而您没有指定正确的响应类型,则客户端可能无法显示图像.也存在防火墙/隐私/用户配置问题.

您可以尝试另一种方法:嵌入HTML电子邮件图像 [
Images can be filtered/broken for a number of reasons. If the client is requesting the ashx for the image source and you aren''t specifying the proper response type, for example, the client may be unable to display the image. There are firewall/privacy/user config issues as well.

You can try another approach: Embed HTML Email Images[^] It''s an article here on CP that shows you how to use CDATA and embed your images in the messages.

Cheers.


问题很可能;您作为电子邮件发送的网页"具有图像的链接,而不是图像本身.

在这里看看:
在电子邮件中嵌入图像-ASP.NET,C# [ http://www.asp .net/general/videos/how-do-i-embed-an-image-in-an-email-with-aspnet [ http://forums.asp.net/t/877225.aspx/1 [ ^ ]
The problem is probabl;y the "web page" you sending as email has links to the images, not the images themselves.

Take a look here: Embed image in Email - ASP.NET , C#[^],
here http://www.asp.net/general/videos/how-do-i-embed-an-image-in-an-email-with-aspnet[^],
and/or here http://forums.asp.net/t/877225.aspx/1[^]


这篇关于使用Asp.net邮寄网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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