想要插入< a>在mailto标记的正文部分中链接到我的网站的主页 [英] want to insert <a> link to home page of my site in the body part of mailto tag

查看:73
本文介绍了想要插入< a>在mailto标记的正文部分中链接到我的网站的主页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
是否已可以在MAILTO链接的正文中添加HTML链接

我需要在mailto标记的正文部分插入以下文本.

I need to insert the below text in the body part of mailto tag.

第一行没有问题.但是第二行是链接回到我的网站主页.

There is no problem in first line. But second line is link back to my site homepage.

作者姓名的启示:帖子标题...(包括标题末尾的三个点)在这里查看全文![此行是指向实际帖子URL的链接]"

"Inspiration from Author Name: Post title... (include the 3 dots at end of title) View in full at here! [this line is a link back to actual post URL]"

请帮助我.

推荐答案

在电子邮件中添加HTML被认为是不好的做法,您只需在正文中输入一个URL,然后让电子邮件客户端自动将其转换为可点击的链接即可.

Adding HTML in an email is considered bad practice, you should just put a URL in the body text and let the Email client automatically convert it to a clickable link.

<a href="mailto:emailgoeshere?subject=SUBJECT&body=Check out this URL: http://www.example.com/">some text</a>

您还可以尝试以下操作(通过使用HTML转义代码)来强制使用某些常规文本进行链接:

You could also try the following (by using HTML-escape codes) to try to force a link with some regular text:

<a href="mailto:emailgoeshere?subject=SUBJECT&body=Check out this URL: &lt;a href='http://www.example.com/'&gt;SOME LINK&lt;/a&gt;">some text</a>

但是,我的主要免责声明是,这可能最终在大多数电子邮件客户端上看起来像废话(除非用户已将默认/首选邮件格式设置为 HTML).

However here's my major disclaimer that this will probably end up looking like crap on most email clients (unless the default/preferred mail format is already set to HTML by the user).

这篇关于想要插入&lt; a&gt;在mailto标记的正文部分中链接到我的网站的主页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆