email() problem

From: Date: Fri, 21 Dec 2001 02:34:08 +0000
Subject: email() problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-11050@lists.php.net to get a copy of this message
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 = "me@myaddress.com"; $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>"; ?>

« previous php.windows (#11050) next »