【问题标题】:How to forward mail message using Zend Mail?如何使用 Zend Mail 转发邮件消息?
【发布时间】:2011-11-02 18:04:31
【问题描述】:

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

我发现similar question 有一个答案,但是这个解决方案不起作用(正文内容被编码)

【问题讨论】:

  • 这并不意味着给定的答案没有帮助。只是以不同的方式处理正文内容。
  • Forward Zend_Mail_Message的可能重复

标签: php zend-framework email zend-mail


【解决方案1】:

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

$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 

【讨论】:

    猜你喜欢
    • 2012-04-17
    • 2011-07-28
    • 1970-01-01
    • 2011-04-22
    • 2011-03-28
    • 2011-02-09
    • 2011-05-17
    • 2012-05-09
    • 2014-04-26
    相关资源
    最近更新 更多