2011-04-01 65 views
1

我發送一個電子郵件與PHP格式的HTML格式。 在Windows中接收時=佈局正確,附件在那裏。 當它在Mac上接收它=它顯示下面的代碼(我已經刪除了一些從HTML電子郵件,但你得到的想法)。希望你們中的一些人能幫我解決這個問題。HTML電子郵件發送與PHP =正確的外觀(勝利),但在Mac郵件上的純文本

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:[email protected]" style="text-decoration: none;"><font face="Arial" size="1" color="#231F20">[email protected]</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-- 
+0

歡迎SO。我已經重新格式化了您的問題中的代碼,以便它正確顯示。 – Spudley 2011-04-01 12:22:05

回答

0

我們使用theese爲Mac郵件:

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