该链接将在Outlook中以超链接形式打开

该链接将在Outlook中以超链接形式打开

本文介绍了创建mailto超链接,该链接将在Outlook中以超链接形式打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我的场景:

我试图在将使用mailto超链接生成的电子邮件正文中嵌入超链接。所以我会有这样的东西:

 < a href =mailto:[email protected]?subject = Email Subject& ; body =点击
< a href =%22http://www.google.com%22> Here< / a>转到google.com>点击此处打开
Outlook和与生成的电子邮件< / a>

问题是,这种情况会打开Outlook,但电子邮件实际上显示为:

 点击< a href =http://www.google.com>此处< / a>去google.com 

将会在电子邮件中点击,但锚标记也会显示出来,而且很丑陋。



我不确定这是否可行,但是我可以以某种方式创建此超链接,以便Outlook无法捕获URL地址并自动在其周围创建锚标签?

解决方案

你不能这样做。请参阅,其中说:


Here's my scenario:

I'm trying to embed a hyperlink in the body of an email that will be generated using the mailto hyperlink. So I will have something like this:

<a href="mailto:[email protected]?subject=Email Subject&body=Click
<a href=%22http://www.google.com%22>Here</a> to go to google.com">Click Here to open
Outlook and with generated email</a>

The problem is, this scenario will open outlook but the email will actually appear as:

Click <a href="http://www.google.com">Here</a> to go to google.com

the http://www.google.com will be clickable in the email but the anchor tag will also show up and it is ugly.

I'm not sure if this is possible, but can I somehow create this hyperlink in a way that Outlook won't catch the URL address and automatically create the anchor tag around it?

解决方案

You can't do this. See the specification for mailto: URIs, which says:

这篇关于创建mailto超链接,该链接将在Outlook中以超链接形式打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 22:51