I have a client who wants a form on her webpage that’ll end up in her e-mail inbox. I’m using Dreamweaver 8, and I know how to make the form, I just need to know how to get it to her inbox. Everything I’ve seen says there’s a script required, but I have no idea how to do that.
You can’t do it with straight HTML. HTML isn’t capable of interacting with email servers to send the form information to someone’s email. You must use PHP or ASP or another web technology. Furthermore, using PHP’s straight mail() function gets more complicated because hackers know how to mess with simple contact forms to do their spamming for them.
If you don’t want to learn PHP or ASP (and I don’t blame you if it’s just for a web contact form), I’d recommend using various sites that offer free contact forms online. Google turns up a bunch of promising ones: web contact forms - Google Search
You CAN do a form in straight HTML my making the FORM action a mailto: link. What you get is decipherable by mere humans, but it isn’t pretty.
There are a lot of forms available to process e-mail. Matt’s Script Archive’s FormMail is one of the oldest and I’m not sure if it’s still good.
I have a slightly more complicated question on this line for people who deal with this more often: how do you avoid getting spammed to death? The last time I turned on a form in my website, I was instantly getting 80+ spams from it per day.
The main problem with the mailto form is that it requires that the user has their email client set up on that PC, and that they send it when it pops up. Anyone who just uses webmail, or is posting from a public PC, etc. etc., it won’t work for.
I went to the first link in the Google search that was linked to upthread. I had to tell it what I wanted the form to say, then I pasted the code. It works.