本文介绍了Mailto:指导和字符限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个应用程序,允许用户使用mailto标签从Outlook中发送电子邮件。我知道与mailto,有限制可以通过的字符数以及编码。有没有人知道我可以使用的字符的确切数量,以及编码特殊字符时要遵循哪些准则?最多可以使用的字符数是多少?身体和主题或整个行包括mailto语法?



例如,我将具有以下内容:

 < a href ='mailto:[email protected]?subject = Test Mail& body =第一行。%0D%0ALine two。'> Test Link< / a> 

这将是69个字符?



忘记提及,支持的浏览器将是IE6。



任何帮助将不胜感激。



感谢

解决方案

据我所知,没有限制。



HTML 4规范中没有任何限制说明



然而,许多网站报告 256个字符的限制



您应该测试一下。



您也可能会发现这个问题和答案有所体现:


I'm trying to code an application which will allow users to send emails from outlook using the mailto tag. I know with the mailto, there involves limitation of # of characters that may be passed, as well as encoding.

Does anyone know the exact count of characters I can use, and what guidelines to follow when it comes to encoding special characters? What is counted in the max number of characters you can use? Body and Subject or the whole line including mailto syntax?

For example I will have the following:

<a href='mailto:[email protected]?subject=Test Mail&body=Line one.%0D%0ALine two.'>Test Link</a>

Would this be 69 characters??

Forgot to mention, supported browser will be IE6.

Any help would be appreciated.

Thanks

解决方案

As far as I know there is no limit.

The HTML 4 spec says nothing about a limit

http://www.w3.org/TR/WD-html40-970917/struct/links.html#h-13.2.2

However, many sites report a 256 character limit.

You should test to be sure.

You may also find this question and answers illuminating: What is the email subject length limit?

这篇关于Mailto:指导和字符限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 22:50