开发者

How to define mailto link in HTML, where body variable is in HTML format?

Example:

<a href="mailto:email@mail.com?subject开发者_JAVA技巧=New&body=<b>bold text</b>">Send Email</a>

I need "bold text" to be really bold, not surround with tags.


How to define mailto link in HTML, where body variable is in HTML format?

As far as I know, this isn't possible at all. The mailto: syntax is limited to text-only content.


IIRC you can specify a body, although only a limited amount of email clients do this.

So for web, probably best to not use. But if you do use it, remember to URL encode your body, as you'll get validation errors in the least.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜