Article ID: 279460 - Last Review: May 11, 2006 - Revision: 4.1 How to use the mailto: protocol in a <FORM> actionThis article was previously published under Q279460 SUMMARY
The sample code provided in this article applies to developers that want to submit the contents of an HTML form directly to an e-mail address. The code also applies to developers who run into the length limitations documented later in this article when using the mailto: protocol in other situations. For the latter case, the body text is often the limiting factor. For more information about length limitations, see the articles listed in the "References" section. NOTE: Use of the approach outlined in the "More Information" section has several limitations, including:
186204
(http://support.microsoft.com/kb/186204/
)
How to use CDONTS to collect and mail information from a user
MORE INFORMATION
One solution is using a FORM with an ACTION of POST instead. The caveat is that FORM elements cannot be used to fill in the various fields like Subject, Body, and and so forth because the mailto: protocol handler does not examine these fields. All the FORM data is packaged and e-mailed away. So, having the FORM ACTION fills in the Subject field as follows Subject=Test+Subject&Body=%09kfdskfdksfkds%0D%0A%09 Subject=Test Subject Body= kfdskfdksfkds REFERENCES
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
196461
(http://support.microsoft.com/kb/196461/
)
196461
(http://support.microsoft.com/kb/196461/
)
How to set up a form to post results by e-mail in FrontPage 2000
194088
(http://support.microsoft.com/kb/194088/
)
How to set up a form to post results by e-mail in FrontPage 98
For more information about character limitations, click the following article numbers to view the articles in the Microsoft Knowledge Base:
208427
(http://support.microsoft.com/kb/208427/
)
Maximum URL length is 2,083 characters in Internet Explorer
263909
(http://support.microsoft.com/kb/263909/
)
ShellExecuteEx limits URL to MAX_PATH
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:http://msdn.microsoft.com/ie/
(http://msdn.microsoft.com/ie/)
http://msdn.microsoft.com/workshop/networking/predefined/mailto.asp
(http://msdn.microsoft.com/workshop/networking/predefined/mailto.asp)
http://support.microsoft.com/iep (http://support.microsoft.com/iep) APPLIES TO
| Article Translations
|


Back to the top
