SendMail - HTML- Cell Phones

Neotropic

70.***.***.***
833 days ago

SendMail - HTML- Cell Phones

Ok, were I work they were using old cgi mail scripts. I converted them to PHP. But now, some users who check their email via cellphone no longer see the messages as they are HTML. I checked it on 5 separate accounts, if not more, all formatted correctly. Until today, a user is getting blank emails.

I re-wrote the script to put alternate text in. So i am at least showing them the message. But what I want to know is, is there something in the PHP headers messing it up for cellphones? Not worked much with cell phones as far as this goes, later will will with websites. But for now, this is an issue. Do have a work around. but would like to be consistent.

Any solutions?
Thanks.

Bill

84.***.***.***
833 days ago
Could this be it?

http://php.net/manual/en/function.mail.php:


// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";


// Additional headers
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$headers .= 'Cc: [email]birthdayarchive@example.com[/email]' . "\r\n";
$headers .= 'Bcc: [email]birthdaycheck@example.com[/email]' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers);