【问题标题】:Sending html email to bat! program (C#)向 bat 发送 html 电子邮件!程序 (C#)
【发布时间】:2010-12-22 14:48:19
【问题描述】:

我正在尝试发送 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 中!它只是一个图像(地图不起作用)。 谁能告诉我我做错了什么?

【问题讨论】:

    标签: html html-email imagemap


    【解决方案1】:

    电子邮件客户端限制了它们支持的 HTML。这是出于多种原因,包括安全性。

    我建议将您的图片分割并使用表格,或者在必要时将用户引导至带有图片地图的网页。

    【讨论】:

      【解决方案2】:

      根据features页面,

      蝙蝠!它自己的 HTML 查看机制 - Robin HTML Viewer 以及它自己的图像查看模块的好处。

      HTML 电子邮件通常是一场噩梦,例如,建议使用表格进行布局。您发现图像地图在 The Bat! 中不起作用,因此您应该重新设计布局,只需要简单的图像链接。

      【讨论】:

        猜你喜欢
        • 2015-06-07
        • 2011-03-26
        • 1970-01-01
        • 2018-05-10
        • 2011-03-30
        • 2020-01-20
        • 2015-06-28
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多