From: mark burdett Date: Mon, 11 Mar 2019 22:04:23 +0000 (-0700) Subject: Non-multipart body is now an ezcMailFile object stored in tmp directory. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9dcd46efea53f53577246237a94a9b5980d6c568;p=civicrm-core.git Non-multipart body is now an ezcMailFile object stored in tmp directory. --- diff --git a/CRM/Utils/Mail/EmailProcessor.php b/CRM/Utils/Mail/EmailProcessor.php index 5f609153b4..3c9842d9e2 100644 --- a/CRM/Utils/Mail/EmailProcessor.php +++ b/CRM/Utils/Mail/EmailProcessor.php @@ -290,6 +290,9 @@ class CRM_Utils_Mail_EmailProcessor { elseif ($mail->body instanceof ezcMailMultipart) { $text = self::getTextFromMultipart($mail->body); } + elseif ($mail->body instanceof ezcMailFile) { + $text = file_get_contents($mail->body->__get('fileName')); + } if ( empty($text) &&