Re: I cannot figure out why this is not working?

From: Date: Sat, 02 Jun 2007 23:00:57 +0000
Subject: Re: I cannot figure out why this is not working?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-256019@lists.php.net to get a copy of this message
On 6/2/07, Brad Sumrall <BradS@boatcrafts.net> wrote:
<?php { $to = ("chris@floridaonlineinvestments.com,tom@floridaonlineinvestments.com"); $subject = "online guestbook register"; $email = $_POST['email'] . "\n"; $headers = "Reply-To: " . $_POST['email'] . "\n"; $body = "Visitor Infomation: " . "\n" . "Name: " . $_POST['name2'] . "\n" . "Email: " . $_POST['email2'] . "\n"; } else { mail($to,$subject,$body,$headers); $to = ("$email2");
Where did you get $email2??
$subject = ("Thank you"); $email = $_POST['email'] . "\n";
Why do you need $email?
$headers = "Reply-To: " . $_POST['email'] . "\n"; $body = "Thank you for signing our Guest Book and visiting our website. Feel free to search our extensive property database, as this is the most current up to date information in the Real Estate Market today. You will see the latest listings the same time the Realtors do. Check out http://www.Floridaonlineinvestments.com" . "\n" . mail($to,$subject,$body,$headers); } ?>
Did you get any error? And what does mail return? true or false? Tijnema


« previous php.general (#256019) next »