HTML 电子邮件跳转链接不起作用

发布于 2024-09-13 18:00:35 字数 475 浏览 6 评论 0原文

我已经使用表格(:悲伤的脸:)编写了 HTML 电子邮件,并且在使用 Internet Explorer 的发送 -> 时它显示完美。通过电子邮件翻页。我的问题是我的跳转链接

<a href="#jumplink">Go to the jump link</a> 

不再起作用,您只需打开我发送的页面的完整 URL。我查看了跳转链接确实有效的电子邮件来源,我发现跳转链接看起来像这样,

<a href="BLOCKED::#wordtag">Word generated jump link</a>

我尝试添加此链接,但我仍然打开 IE,现在它会转到 http:///

知道我是否需要添加任何额外的标签或其他方法来解决这个问题吗?

I've written a HTML Email using tables (:sad face:) and it displays perfectly while using Internet Explorer's Send -> Page by Email. My issue is that my jump links

<a href="#jumplink">Go to the jump link</a> 

no longer work, thye just open the complete URL of the page that I was sending. I've looked through the source of emails in which the jump links do work and I saw that the jumps links looked like this

<a href="BLOCKED::#wordtag">Word generated jump link</a>

I tried adding this but I'm still getting IE opening and it's now going to http:///

Any idea if there's any extra tags I need to add or another way to get around this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

︶葆Ⅱㄣ 2024-09-20 18:00:35

本质上,这与微软处理互联网安全的方式有关。不幸的是,最好的做法是避免在 HTML 电子邮件中使用命名(跳转)锚点。然而,为了克服这个问题,您可能需要提供一个带有 HTML 电子邮件的网页链接,当然可以有命名锚点。

您可以阅读 Sitepoint 上的这篇文章。电子邮件标准项目还提供了有关 HTML 电子邮件设计的丰富资源。

Essentially, this is something that has to do with the way Microsoft deals with Internet Security. It is best practice to avoid named (jump) anchors in HTML email, unfortunately. However, to overcome this you might want to provide a link to a webpage with the HTML email on, which can of course have named anchors.

You can read more about best practices for email design on this article at Sitepoint. There is also a great resource for HTML email design at the Email Standards Project.

双手揣兜 2024-09-20 18:00:35

你可以试试这个!!
在展望中->新电子邮件->附加文件->插入(在此处选择html文件)->插入为文本(插入上的下拉菜单)
这将使跳转链接起作用。
但问题全在于活动链接和访问过的链接颜色。这样做会使您无法控制已访问链接和活动链接的颜色。

You can try this!!
In outlook -> new email->attach file->insert(select the html file here)->insert as text(dropdown on the insert)
Which will make the jump links work.
but the problem is all with the active links and visited link color. Doing this leave you no control over visited and active link colors.

似梦非梦 2024-09-20 18:00:35

您可以创建电子邮件模板作为签名。
在 IE 中打开模板并单击 CTRL+A 复制页面。

创建签名并按原样对内容进行分页。

创建新电子邮件并插入签名。将加载模板。

You could create the email template as signature.
Open the tempalte in IE and click CTRL+A to copy the page.

Create a signature and Page the content as it is.

Create a New email and insert the Signature. The template will be loaded.

夕嗳→ 2024-09-20 18:00:35

我也有同样的问题。当尝试使用 Internet Explorer 的发送 -> 发送 html 页面时Page by Email,锚点指向网页的 url,而不是邮件中的内部链接。

可以通过在页面头部添加以下内容来解决这个问题:

<base href="" />

I had the same problem. When trying to send a html page using Internet Explorer's Send -> Page by Email, the anchor pointed to the url of the webpage instead of to the internal link in the mail.

This can be solved by adding this in the head of the page:

<base href="" />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文