html电子邮件在outlook(win)中使用php=correct发送,但在Mac Mail中为纯文本

html电子邮件在outlook(win)中使用php=correct发送,但在Mac Mail中为纯文本,php,html,windows,macos,email,Php,Html,Windows,Macos,Email,我正在用php发送一封html格式的电子邮件。 在Windows中接收时=布局正确且有附件。 当在Mac上收到它时,它显示了下面的代码。我已经从html电子邮件中删除了一些代码,但你明白了。希望你们中的一些人能在这个问题上帮助我 This is a multi-part message in MIME format. --==Multipart_Boundary_x58e7a5e9f21d360b63401b3fab7a3a88x Content-Type: text/html; charse

我正在用php发送一封html格式的电子邮件。 在Windows中接收时=布局正确且有附件。 当在Mac上收到它时,它显示了下面的代码。我已经从html电子邮件中删除了一些代码,但你明白了。希望你们中的一些人能在这个问题上帮助我

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--

我们将theese用于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--

欢迎来到SO。我已将您问题中的代码重新格式化,以便正确显示。