<?php { $to = ("chris@xxxxxxxxxxxxxxxxxxxxxxxxxxxx,tom@xxxxxxxxxxxxxxxxxxxxxxxxxxxx"); $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"); $subject = ("Thank you"); $email = $_POST['email'] . "\n"; $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); } ?>