1

如何使用 Zend Mail 转发 Zend Mail 消息?

我发现类似的问题有一个答案,但这个解决方案不起作用(正文内容已编码)

4

1 回答 1

0

您将需要解码电子邮件的正文。

$content = $part->getContent();
        try {
            switch ($part->contentTransferEncoding) {
                case 'base64':
                    $content = base64_decode($content);
                    break;
                case 'quoted-printable':
                    $content = quoted_printable_decode($content);
                    break;
            }
        } catch(Zend_Mail_Exception $e) { } //content encoding header not set 
于 2011-09-06T19:43:21.187 回答