I have a php app that sends email to the users. For most users this is just fine.
However users with Lotus Notes for their email client are recieving an email that appears to start with some of the headers I have added to the message.
I have tried changing the line endings, to no avail.
Here is the code that sends the emails. (in a loop - $row is from the database).
$to = $row['email'];
$subject = $language['summary'];
$headers = "From: $from\n".
"Reply-To: $from"."\n" ;
if (!mail($to, $subject, $body,$headers,"-f$from")) {
echo("<p>Message delivery failed to $to</p>");
}
Lotus Notes treats X-Mailer:PHP/5.3.2-1ubuntu4.7 as the first line of the content!
Has anyone any idea why, and how I can change the email to work correctly?
Edit - 1 Aug - Tried \r\n and PHP_EOL as line endings. Nothing works with notes. Everythgin workes wiith every other tested MTA.