【问题标题】:How to prevent Thunderbird from rewriting URLs to hyperlinks when composing html emails?如何防止 Thunderbird 在撰写 html 电子邮件时将 URL 重写为超链接?
【发布时间】:2018-07-04 10:29:57
【问题描述】:

我在 Windows 7 上使用 Thunderbird 52.5.2。

当我编写 html 电子邮件并发送时,Thunderbird 会在发送电子邮件时将我写的电子邮件地址和 http:// 网址转换为可点击的超链接。我不想让 Thunderbird 为我做这件事,我会在需要时通过 insert->links 手动做。

当我撰写和发送 html 电子邮件时,如何防止 Thunderbird 自动将 URL 重写为超链接?

例如,我想编写这样的 html 电子邮件:

Email content I composed (I'm not able to embed img now, please click to view)

Thunderbird 将重写电子邮件地址和 http url 如下(源代码视图)

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=en-US">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <b>H</b><i>ELLO</i><br>
    This is an email address <a class="moz-txt-link-abbreviated" href="mailto:dummy@example.com">dummy@example.com</a><br>
    This is a http url <a class="moz-txt-link-freetext" href="http://www.example.com/dummy.html">http://www.example.com/dummy.html</a><br>
    <br>
  </body>
</html>

但我希望 Thunderbird 保留我写的内容如下(源代码视图):

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=en-US">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <b>H</b><i>ELLO</i><br>
    This is an email address dummy@example.com<br>
    This is a http url http://www.example.com/dummy.html<br>
    <br>
  </body>
</html>

【问题讨论】:

标签: html email thunderbird


【解决方案1】:

我发现的一个技巧是将 url 包含在 &lt;a&gt;..&lt;/a&gt; 标签中。 这可能看起来很愚蠢,但它会阻止链接发生,并且没有href 属性,将不会有其他交互。

This is an email address <a>dummy@example.com</a><br>

【讨论】:

  • 但它仍然是一个链接。我希望它保持不变,就像我写的一样。无论如何,谢谢。
【解决方案2】:

灵感来自之前的答案。我发现了另一个技巧,可以让 Thunderbird 正确呈现我的电子邮件,但没有可点击的链接。

当我撰写html电子邮件并编辑到电子邮件地址时,我必须手动使用插入-->html如下:

dummy&lt;span&gt;@&lt;/span&gt;example.com

以下是html url:

http&lt;span&gt;:&lt;/span&gt;//www.example.com/dummy.html

然后我得到了一个完美的结果。

【讨论】:

    【解决方案3】:

    我想要您要求的相同功能,但我能够获得的最接近的功能是使用以下解决方法。

    1) 创建电子邮件后,我使用“稍后发送”功能将电子邮件放入发件箱文件夹,而不是立即发送。见https://addons.thunderbird.net/en-US/thunderbird/addon/send-later-button/?src=search?src=search 此时,电子邮件如果使用 OP 指示的锚文本和超链接的 HTML 代码格式化。

    2) 然后我使用“Header Tools Lite”附加组件的“编辑完整源代码”功能来删除不需要的 HTML 代码。见https://addons.thunderbird.net/en-US/thunderbird/addon/header-tools-lite/?src=search?src=search

    顺便说一句,上面其他人提供的其他解决方法,将 HTML 代码留在电子邮件中。尽管电子邮件中的超链接可能不起作用,但锚文本仍保持格式为链接。这是因为电子邮件中残留的 HTML 代码挥之不去。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-17
      • 2012-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-02
      • 1970-01-01
      相关资源
      最近更新 更多