PHP Zend Framework Class Zend_Mailを使用して電子メールを作成します。関連するインライン画像を含む 1 つのテキスト部分と 1 つの html 部分があります。pdfファイルも1つ添付したいです。
私の質問は、mime 構造についてです。次の 2 つのオプションが可能です。
オプション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 は Apple Mail アプリケーションで認識されません。Thunderbird 3 と Outlook 2007 では問題ありません。Apple Mail でのみ PDF 添付ファイルが認識されません。
オプション 1 は、Apple Mail、Thunderbord、および Outlook では問題ありません。しかし、この構造を Zend Framework クラスZend_Mailから取り出すのは少し難しいでしょう。
これは Apple Mail のバグですか、それともオプション 2 は規範的ではありませんか?
よろしく、スン