note 70211 rejected from function.mail by bobby

From: Date: Fri, 06 Oct 2006 21:35:50 +0000
Subject: note 70211 rejected from function.mail by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-118157@lists.php.net to get a copy of this message
Note Submitter: mcabarus at gmail dot com ---- I'm not really good at explaining my problem: I've made a form with many fields, unfortunatley, I don't know how to put the information from each field into an email and than submitted to me, please help or refer me to someone. The best thing to do is just look at my php, thanks The Form: http://www.mikesgazette.com/aec/contact.html The PHP: http://www.mikesgazette.com/aec/sent.php <?php $fileLocation = $HTTP_SERVER_VARS["PHP_SELF"]; $fileName = basename ($fileLocation); $notcomplete = false; $nodata = false; $mailto = "info@acceleratedescrow.com"; if ( !isset($_POST["subject"]) ){ $nodata = true; } if ( !isset($_POST["email"]) ){ $nodata = true; } if ( !isset($_POST["name"]) ){ $nodata = true; } if ( !isset($_POST["message"]) ){ $nodata = true; } if ( !isset($_POST["address"]) ){ $nodata = true; } if ( !isset($_POST["city"]) ){ $nodata = true; } if ( !isset($_POST["zip"]) ){ $nodata = true; } if ( !isset($_POST["phone"]) ){ $nodata = true; } if ( trim($_POST["subject"] == "") ){ $notcomplete = true; } if ( trim($_POST["email"] == "") ){ $notcomplete = true; } if ( trim($_POST["name"] == "") ){ $notcomplete = true; } if ( trim($_POST["message"] == "") ){ $notcomplete = true; } if ( trim($_POST["address"] == "") ){ $notcomplete = true; } if ( trim($_POST["city"] == "") ){ $notcomplete = true; } if ( trim($_POST["zip"] == "") ){ $notcomplete = true; } if ( trim($_POST["phone"] == "") ){ $notcomplete = true; } if ($notcomplete){ echo "missing required parameter"; //you could change the a exit ('a href="javascript:history.back(1)"> click here a'); } $email = $_POST["email"]; $subject = $_POST["subject"]; $message = $_POST["message"]; $address = $_POST["address"]; $city = $_POST["city"]; $zip = $_POST["zip"]; $phone = $_POST["phone"]; $name = $_POST["name"]; //$mailto = "$mailto"; //$subject = "$subject"; $msg = ereg_replace("\\\'", "'", $message, $address); $msg1 = ereg_replace('\\\"', "\"", $msg); $message1 = "From: $name\nemail: $email\nmessage:\n$msg1; $sent = mail($mailto, $subject, $msg, "From: $email\r\nReply-to: $email\r\n"); ?>

« previous php.notes (#118157) next »