我使用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