Question:
HTML Mailto Command Question?
Cheese Lord
2010-11-12 19:31:42 UTC
Hi there,
I am doing a survey on my website and want the form data to be emailed to me, I used the mailto command but that opens Microsoft Outlook, is there a way of sending the form data to me without using an email client

Thanks
Three answers:
lansingstudent09101
2010-11-12 21:15:35 UTC
The short answer is "no".



The long answer is: "yes, but you need more than just HTML". In order to have the e-mail sent to you, you need the a serverside script in a file, such as "sendmethisstuff.php", then the form tag has an action, that should be set to the URL of "sendmestuff.php". Now sendmestuff.php should take the info and send it to you. In php it would look at the $_POST or $_GET arrays and send you the data.



Because of how common this problem is, you might consider asking your hosting provider, they may have a generic solution so that you can just set up the form and not have to worry about the back-end of it.
just "JR"
2010-11-13 07:57:42 UTC
Download the free script "form to email" from http://www.web2coders.com

(uses Php)
JoelKatz
2010-11-13 03:41:57 UTC
Talk to your hosting provider. This is usually called a "form mail gateway".


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...