I need help with a basic issue.  I can't seem to get the mail() function to
work with php4 on an xp machine running iis5.  I'm new to php and really
want to get it down, but every little thing I try to do throws errors at me.
I just need to know what needs to be adjusted to get this script working.
I've got a form that submits some fields to a php file that sends an email
and generates a thank you message.  Thank you for any help anyone can
provide.  This is the code:
<?php
$msg = "Sender Name:\t$fname $lname\n";
$msg .= "Sender E-Mail:\t$email\n";
$msg .= "Message:\t$street\n\n";

$recipient = "[EMAIL PROTECTED]";
$subject = "Intake Form";

$mailheaders = "From: My Web Site <> \n";
$mailheaders .= "Reply-To: $email\n\n";

mail($recipient, $subject, $msg, $mailheaders);      <------*THIS IS WHERE
IT SCREWS UP*

echo "<html><HEAD><TITLE>Information Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Thank You, $fname $lname</H1>";
echo "<P align=center>Your information has been sent.</P>";
echo "</BODY></HTML>";
?>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to