Question:
How to connect a form to an email?
Vivinka
2009-12-08 05:01:24 UTC
i am designing a website. i have designed the form with name, email, phone number and some dates and a text field for a message. i also have the submit button. How do i get the form connected to an email so that i can receive everything my customers fill in? do i need to download something first like: formmail from from www.scriptarchive.com ???
help please. thank you.
Five answers:
anonymous
2009-12-08 05:04:46 UTC
You should use any server scripting language if you are using php then use



mail(to,subject,body,header) to send emails
ralphus
2009-12-08 06:45:17 UTC
you would a php or asp script to send the email. its fairly simple. all the elements in the form are give names, so name could be customerName, phone num as pNum etc, then that data is transferred to a php file on the server to be sent on so the data enetered would replace these variables in php





$customer= $_POST['customerName'];

$customermail = $_POST['customerEmail'];

$phoneNumber= $_POST['pNum']



if you use dreamweaver you would create your page with the form . click the form (the red dotted line) and in action in the properties panle put te name of the php page that will be on the server to send the email.



Th escripts you download of teh web are pretty self explanatory and theyre easy to cut and paste into your own designs.
anonymous
2009-12-08 05:13:27 UTC
formmail would work.



But



There are other bits you could use - I suggest you go to http://phpclasses.org and explore a bit - they have many web site utilities that you may find useful.



It is VERY important to get some things correct to avoid security problems.
anonymous
2016-11-15 16:31:19 UTC
Do you recommend a database to keep each and all of the submissions of the variety? you would be wanting someplace yet that can basically be a flat record. the ease of a perfect database is that it quite is greater user-friendly to retrieve the techniques, noticeably in case you like do be somewhat cleverer - eg choose all people who submitted final December and who stay interior the united kingdom. elementary adequate to try this for the period of Hypertext Preprocessor in case you may not get a database inspite of the shown fact that.
Wallace
2009-12-09 00:16:51 UTC
YES..."You should use any server scripting language if you are using php then use



mail(to,subject,body,header) to send emails"


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