Message-Id and Date appearing in the body of an email when using the mail() function
Normally when I setup my from email address for the headers, I will append \r\n to the end of it. That works on many setups, but my Ubuntu Server 8.04 doesn't like this. So to fix the problem, I have changed from headers from,
$from = "From: me@example.com\r\n";
to
$from = "From: me@example.com";
That extra line ending was throwing things off.