Started August 2001; Last Update January 2003
Form action mailto: stinks
Budding web developers love to get feedback on their sites. Budding web developers also love to use forms. The problem comes because most free or cheap hosts don't have much in the way of CGI or server-side programming. So how to use a proper feedback form? In many web-dev books they advise these folks to use the action type of "mailto" in a form action. This is a bad idea. Why? Browsers choke on it in a way other form actions don't choke. If no email client is set up, it can choke. They all seem to throw up a more-threatening-than-usual error message as well. Below are some examples of the draconian error messages:
MacOS Classic iCab 2.5.2
MacOS Classic Microsoft Internet Explorer 5
MacOS Classic Netscape 4
MacOS X iCab
MacOS X Mozilla 1.1
MacOS X Microsoft Internet Explorer 5.1
MacOS X Opera 5
MacOS X Safari 1 Beta
WebTV Viewer 2.0 (Client ROM 2.2)
Windows Microsoft Internet Explorer 5
Windows Netscape 3
Windows Netscape 4
Windows Netscape 6
Windows Opera 5
Example Email Form
Source
<form method="post" action="mailto:recipient@fake.dom" enctype="text/plain">
<textarea name="your_comments" placeholder="Your Comments Here"></textarea>
<input type="submit" value="Submit Your Comments">
</form>