Log in

View Full Version : Need super simple method to send a form to an email address



eday_2010
03-05-2007, 08:02 PM
On my own site, I use a very long pearl script to send the forms on my site to my email. It works fine. However, I am redesigning a site for an organization who want a form. I don't want to use the long complicated script since they are not web saavy, plus I don't know if their hosts server can deal with it. And so far, it's not working correctly

So I need something super simple. PHP, CGI, whatever. It just needs to send the form to their email address. I would use <action="mailto:poo@pee.com" etc>, but that prompts the users email client to open, which I don't want.

So if anyone has something short and sweet (that works) to send a form to an email address, that would be great.

I found one at http://www.3rdcoast.com but it only grabs the first item in the fied and nothing else. Help please! This needs to be done very soon.

thetestingsite
03-05-2007, 08:05 PM
Take a look at the following thread.

http://www.dynamicdrive.com/forums/showthread.php?t=15010&highlight=mail+form

Hope this helps.

eday_2010
03-06-2007, 06:10 PM
I tried that kind of script, and it's giving me a 500 Internal Error. Here is my php script:


<?
if ($_POST["Submit"]){

if ($_POST["Name"] and $_POST["Address"] and $_POST["Apt_Suite"] and $_POST["City"] and $_POST["Province"] and $_POST["Postal_Code"] and $_POST["Phone"] and $_POST["Email"] and $_POST["Publication_Title"] and $_POST["#_Copies_English"] and $_POST["#_Copies_French"] and $_POST["Details"]){

mail (
"eday2010@gmail.com",
"Publication Order Request (EN)",
"
Name: ".$_POST['Name']."
Address: ".$_POST['Address']."
Apt/Suite: ".$_POST['Apt_Suite']."
City: ".$_POST['City']."
Province or Territory: ".$_POST['Province']."
Postal Code: ".$_POST['Postal_Code']."
Phone: ".$_POST['Phone']."
E-mail: ".$_POST['Email']."
Publication Title: ".$_POST['Publication_Title']."
# of English Copies: ".$_POST['#_Copies_English']."
# of French Copies: ".$_POST['#_Copies_French']."
Details/Comments: ".$_POST['Details']."
",
"From: ".$_POST['Name']." <".$_POST['Email'].">");

header("Location: http://www.wnstudios.ca/en/thankyou2.html");
exit();
}
?>

And the actual form is here: http://www.wnstudios.ca/en/order-commandez.html

jscheuer1
03-06-2007, 07:39 PM
Super simple? Get a third party mail handler.

eday_2010
03-09-2007, 04:03 PM
Are there free ones?

thetestingsite
03-09-2007, 04:06 PM
Tons of them, go to Hotscripts.com (http://www.hotscripts.com/Remotely_Hosted/Email_Systems/index.html) and have a look through that.

You could also do a Google search for many more.

Hope this helps.

jscheuer1
03-09-2007, 07:27 PM
Here is one such free service (this is not a recommendation):

http://www.jotform.com/index

You can use the form completely on your server or have them host (process) it for you. Both are free. If you Google:

free mail form remote host

You will find other services like this (along with a lot of other responses).