Wade, I will give it a try,
Wade Smart <[EMAIL PROTECTED]> wrote:
Mr.A Wilson wrote:
> Wade,
> I am a little confused, should I just replace the code I have with the code
> you supplied? Also, the header and reply to strings, will they pick up the
> variables that I assigned to the boxes in the contact form?
>
> Wade Smart <[EMAIL PROTECTED]> wrote:
> Mr.A Wilson wrote:
> To = "[EMAIL PROTECTED]";
>>> $subject = "Info from Game Website.";
>>>
>>> $ip = $_SERVER['REMOTE_ADDR'];
>>> $name = $_GET['Name'];
>>> $email = $_GET['Email'];
>>> $comments = $_GET['Comments'];
>>> $from = "Reply-To: " . $name . "<" . $email . ">/n";
>>> $headers = 'Content-type: text/html; charset=iso-8859-1';
>>> $comments ="\r\n\n\n" . "Sender's ip address is " . nl2br($ip);
>>> mail($sendTo, $subject, $comments, $from);
>
> 20080809 2101 GMT-6
>
> This is the std php mail example:
> <?php
> $to = '[EMAIL PROTECTED]';
> $subject = 'the subject';
> $message = 'hello';
> $headers = 'From: [EMAIL PROTECTED]' . "\r\n" .
> 'Reply-To: [EMAIL PROTECTED]' . "\r\n" .
> 'X-Mailer: PHP/' . phpversion();
>
> mail($to, $subject, $message, $headers);
> ?>
20080809 2140 GMT-6
Ashley, try this:
$to = "[EMAIL PROTECTED]";
$subject = "Info from Game Website.";
$message = $_GET['Comments'];
$message .= "\r\n\n\n" . "Sender's ip address is " . nl2br($ip);
$headers = "Replay-To: " . $_GET['name'] . "<" .$_GET['Email'] ">\r\n";
mail($to, $subject, $message, $headers);
Wade
[Non-text portions of this message have been removed]