Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie question... Email link

Status
Not open for further replies.

elisemeyer25

Programmer
May 1, 2008
2
US
I'm trying to make a link in my webpage that will automatically send me an email of what the user types when they click the submit button. So there is a box for their input, then a submit button, and when they click it, I am sent their data. I have no idea how to go about this. please help! thanks!
 
The easiest way would be to have a form with its action set to mailto: with the address you want it to send to. However this would rely on the user having an installed mail client such as outlook, and having it properly configured, and actually wanting to send the email. They could just as easily close the new mail window and be done with it.

If you want a more professional solution, any Server side language such as PHP or ASP is capable of sending emails. so you can use one of those to send it, and it doesn't rely on the user's mail client.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Okay, thanks. How do I write the code for either of those? And am I able to incorporate it into the HTML page? How would I do that?
 
What you may want to look into is a good form to mail script. I understand if you would like to learn to code your own but you may want to learn about the security risks involved. Here is a link to a very good one called formmail.php: They have taken a very well know script and added some security enhancments to it. You can also look at hotscripts.com for similar scripts. I'm not trying to push anything in particular on you but you would be surprised how fast spambots find your form and will use it for sending spam through your mailer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top