How to forward mail message using Zend Mail?
How do I forward Zend Mail Message using Zen开发者_StackOverflow社区d Mail?
I've found similar question with one answer, but this solution does not work (the body content is encoded)
You will need to decode the body of the email message.
$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
精彩评论