我使用PHP Zend Framework類構建電子郵件Zend_Mail。有一個文本和一個HTML部分與相關的內聯圖像。我也想附上一個pdf文件。MIME「multipart/related」結構和Apple Mail。它是一個錯誤嗎?
我的問題是關於mime結構。有兩個選項:
選項1:
Content-Type: multipart/mixed
Content-Type: multipart/alternative
Content-Type: text/plain; charset=UTF-8
Content-Type: multipart/related
Content-Type: text/html; charset=UTF-8
Content-Type: image/jpeg
Content-Type: image/jpeg
Content-Type: image/png
Content-Type: application/pdf
選項2:
Content-Type: multipart/related;
Content-Type: multipart/alternative;
Content-Type: text/plain; charset=utf-8
Content-Type: text/html; charset=utf-8
Content-Type: image/jpeg
Content-Type: image/jpeg
Content-Type: image/png
Content-Type: application/pdf
選項2通過使用Zend_Mail建成,但PDF是不是蘋果郵件應用程序的認可。在Thunderbird 3和Outlook 2007中沒問題。只有在Apple Mail中,PDF-Attachment無法識別。
選項1在Apple Mail,Thunderbord和Outlook中可以使用。但是將這個結構從Zend框架類Zend_Mail中解放出來會有點棘手。
這是Apple Mail中的錯誤還是選項2不規範?
親切的問候, SN
需要注意的是,如果它與蘋果Mail一起工作我沒有測試,我肯定知道它的工作原理與雷鳥3+ – max4ever