html email send med php=korrekt i outlook (win), men er almindelig tekst på Mac Mail

Indlæg af Hanne Mølgaard Plasc

Problem



Jeg sender en email med php i html-format.
Når du modtager det i Windows=Layout er korrekt og vedhæftede filer er der.
når jeg modtager det på Mac=det viser koden nedenfor (jeg har fjernet nogle fra HTML-mailen, men du får ideen). Forhåbentlig kan nogle af jer hjælpe mig på denne.


This is a multi-part message in MIME format.

--==Multipart\_Boundary\_x58e7a5e9f21d360b63401b3fab7a3a88x
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

<html>
                <head>                  
                </head>

                <body>

                    <div align="center">
                        <table border="0" cellpadding="0" cellspacing="0" width="550">
                            <tr>
                                <td class="headertitle"><img src="http://mysite.eu/sources/img/header.jpg" width="550" height="100" alt=""></td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <table border="0" cellpadding="0" cellspacing="0" width="550">
                                        <tr>                                        
                                            <td width="510" align="left" valign="top">
                                                <font face="Arial" size="3" color="#000000">
                                                <p>test email</p>
                                                </font>
                                            </td>
                                            <td width="20"></td>
                                        </tr>   
                                    </table>
                                </td>
                            </tr>
                            <tr><td>&nbsp;</td></tr>
                            <tr>
                                    <td align="center">
                                    <div align="center"><img src="http://www.mysite.eu/sources/img/line2.jpg" width="518" height="21" alt=""><br>
                                     <font face="Arial" size="1" color="#231F20"> contact details here
| Email <a href="mailto:contact@mysite.eu" style="text-decoration: none;"><font face="Arial" size="1" color="#231F20">contact@mysite.eu</font></a> | <a href="http://www.mysite.eu" target="\_blank" style="text-decoration: none;"><font face="Arial" size="1" color="#231F20">www.mysite.eu</font></a>
                                  </font>
                                  </div>
                                  </td>
                                   </tr>
                        </table>
                    </div>

                </body>
                </html>

--==Multipart\_Boundary\_x58e7a5e9f21d360b63401b3fab7a3a88x

--==Multipart\_Boundary\_x58e7a5e9f21d360b63401b3fab7a3a88x--

Bedste reference


Vi brugte disse til Mac Mail:


Content-Type: multipart/alternative; charset="UTF-8"; boundary="b1\_28ffe645f1d2d11a286709f14eeb1e0f"
Content-Transfer-Encoding: 8bit

--b1\_28ffe645f1d2d11a286709f14eeb1e0f
Content-Type: text/plain; format=flowed; charset="UTF-8"
Content-Transfer-Encoding: 8bit

if it not works: http://linktocontent

--b1\_28ffe645f1d2d11a286709f14eeb1e0f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: 8bit

<html>...</html>
--b1\_28ffe645f1d2d11a286709f14eeb1e0f--