need quick help on a php script!!

mcveigh

Diamond Member
Dec 20, 2000
6,457
6
81
I get an error message when it's on a windows server but no error on a unix server.
its a form mail script.

here is the error message
--
Warning: Server Error in E:\xxxxxxxx\xxxx\xxxxxxxxxx.com\formmail.php on line 162
Thank you for your submission
--

// mail the content we figure out in the following steps
function mail_it($content, $subject, $email, $recipient) {
mail($recipient, $subject, $content, "From: $email\r\nReply-To: $email\r\nX-Mailer: DT_formmail");
}

the last line is 162. any ideas why this won't work?
 

mcveigh

Diamond Member
Dec 20, 2000
6,457
6
81

my bad there is a closing bracket i didn't cut and paste well
but then why would it work fine under unix?


edit2:

new error message from me playing

Warning: Server Error in E:\xxxxxxxxx\xxxxxxxxx\xxxxxxxxxxxxx\newformmail.php on line 163

Warning: Cannot add header information - headers already sent by (output started at E:\xxxxxxxxx\xxxxxxxxx\xxxxxxxxxxxxx\newformmail.php:163) in E:\xxxxxxxxx\xxxxxxxxx\xxxxxxxxxxxxx\newformmail.php on line 324
 

mcveigh

Diamond Member
Dec 20, 2000
6,457
6
81
lines around 163
--
// mail the content we figure out in the following steps
function mail_it($content, $subject, $email, $recipient) {
mail($recipient, $subject, $content, "From: $email\n\nReply-To: $email\n\nX-Mailer: DT_formmail");
}
---------------------
lines from 324

--
// if the redirect option is set: redirect them
if ($redirect) {
header ("Location: $redirect");
exit;
} else {
print "Thank you for your submission\n";
echo "

\n";
echo "<small>This form is powered by <a href=\"http://www.lumbroso.com/scripts/\">Jack's Formmail.php $version!</a></small>\n\n";
exit;
}

-------------end of file--------------------