PHP is retaining the implicit linefeed in the text so there is a blank line between From and Content-Type, the end-of-header indicator. (You must have a dos-ish system.)
$msg .= "From: [EMAIL PROTECTED] Content-Type: text/plain\r\n"
Change it to:
$msg .= "From: [EMAIL PROTECTED]" . "Content-Type: text/plain\r\n";
The log files will sort a lot more sensibly if you use 'Ymd'.
$fileName = 'errors.'.date('dmY').'.log';
-- jimoe at sohnen-moe dot com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php