3 ms·
This is even more 90es: <form action="mailto:my@email.com" method=post enctype="text/plain"> ... </form>
by MarvinYork 13y ago
This is even more 90es:
<form action="mailto:my@email.com" method=post enctype="text/plain">
...
</form>
- dreamfactory2 13y agoI'm probably missing something obvious but I don't understand how this is different apart from costing money
- kej 13y agoWhen you submit a form with a "mailto:" action, the browser opens the mailto protocol handler, which is the user's email client. So you hit submit on the form and then see a draft email filled out with your form responses.
- cstuder 13y agoWhich was one solution to the then very frequently asked question "How do I get the email addresses of all my visitors?"
- nl 13y agoTo expand on that: If the user doesn't have an client-side email client setup (eg, they use Gmail/Hotmail via the browser) a box will pop up prompting them to setup an email account. Even if they do have one setup up, most users will immediately dismiss the email, so you'll never get it. This is different to serverside email, where the client submits a form to the server, and the server sends you an email. Unlike the "mailto:" method, the second method will actually get you some responses.
- standeven 13y agoThat's how my very first website worked, which let users vote for Coke or Pepsi. I would get emails during the week and then update the count on the site manually. Horribly inefficient, but as a kid I thought it was pretty great.