| Re: [PHP] I cannot figure out why this is not working? -
06-04-2007, 01:37 AM
On 6/2/07, Brad Sumrall <EMAIL REMOVED> wrote:
> <?php
>
> {
>
> $to =
> ("EMAIL REMOVED,tom@floridaon lineinvestments.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
>
>
>
> |