I'm running in to an issue where spaces are being randomly inserted into notification emails which I'm generating and sending using PHP's built-in mail() function.
Whenever it occurs (which isn't always) .. the spaces are inserted in random spots in the emails, .. which sometimes results in hyperlinks being broken & not resolving correctly.
Why is this happening? And what can I do to fix it?
Just in case it's relevant, .. these are the mail headers that I'm using:
$headers = "From: $mailFrom" . "\r\n" . "Reply-To: $mailFrom" . "\r\n" . "Content-type: text/html; charset=iso-8859-1" . "\r\n";
Also -- is it possible that the mail client being used to retrieve and view the emails might be the culprit (ie: Outlook, .. or Windows Mail) ? Or what else could it possibly be?