我正在尝试发送一封HTML电子邮件,它将通过Bat接收!程序。
正在从C#代码发送邮件。我设置了IsBodyHtml = true;。我的HTML代码是:
<html>
<head>
<title>Mail</title>
</head>
<body>
<map name="planetmap">
<area shape="rect" coords="20,29,303,155" href="http://mysite.com" alt="this is my site" />
<area shape="rect" coords="372,23,479,103" href="http://somesite.com/" alt="somesite" />
<area shape="rect" coords="35,345,169,408" href="anotherlink.com" alt="" />
<area shape="rect" coords="178,348,332,409" href="http://www.lastsite.com/" alt="lastsite" />
</map>
<img src="cid:mail" usemap ="#planetmap" border="0"/>
</body>
</html>此邮件在Outlook中显示良好,但在Bat中显示!它只是一个图像(map不起作用)。谁能告诉我我做错了什么?
发布于 2010-12-22 22:52:47
电子邮件客户端限制其支持的HTML。这是由于一系列的原因,包括安全性。
我建议将你的图片切分,并使用表格,或者如果有必要的话,简单地将用户引导到一个带有图片地图的网页。
发布于 2010-12-22 22:54:41
根据features的页面,
蝙蝠
!其自身的HTML查看机制的好处- Robin HTML查看器,以及它自己的图像查看模块。
HTML电子邮件通常是一个噩梦,例如,推荐使用表格进行布局的一种情况。您已经发现图像映射在Bat!中将不起作用,因此您应该重新设计布局,以便只需要简单的图像链接。
https://stackoverflow.com/questions/4510350
复制相似问题