iPhone displays plain and html in newsletter email -


i've set multipart mime email containing area text- , 1 area html-version of newsletter. works fine excepting iphone. displaying text version first followed html version. dont have ideas why ... :-/

here php:

$to = $_post['email']; $subject = 'test'; $bound_text = 'boundary42';  $headers = "from: sender@sender.net\r\n"; $headers .= "mime-version: 1.0\r\n"         . "content-type: multipart/mixed; boundary=\"$bound_text\"";  $message = file_get_contents('mime.file');  mail($to, $subject, $message, $headers); 

the file content:

mime-version: 1.0  content-type: multipart/mixed; boundary=boundary42   message multiple parts in mime format. --boundary42  content-type: text/plain; charset=utf-8 content-transfer-encoding: 7bit  text goes here       --boundary42  content-type: text/html; charset=utf-8 content-transfer-encoding: 7bit  <!doctype html public "-//w3c//dtd xhtml 1.0 transitional //en" "http://www.w3.org    /tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html>     <head>         <title></title>         <meta http-equiv="content-type" content="text/html; charset=utf-8">     </head>     <body style="margin:0;padding:0;font-family: arial, 'arial';">         html goes here     </body> </html>  --boundary42-- 

see mime type satisfy html, email, images , plain text? , mail multipart/alternative vs multipart/mixed

what have built multipart/mixed container 2 things in it: text , plain. mixed, correct render both.

what want multipart/alternative container hold 2 things.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -