Jonathan Villa wrote:

$msg .= "From: [EMAIL PROTECTED] Content-Type: text/plain\r\n"

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.)
Change it to:
$msg .= "From: [EMAIL PROTECTED]" . "Content-Type: text/plain\r\n";



$fileName = 'errors.'.date('dmY').'.log';


The log files will sort a lot more sensibly if you use 'Ymd'.


-- jimoe at sohnen-moe dot com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to