I am having this issue after upgrading to magento 2.3.3 and applied the email patch they provided. When try to send email I get:
report.CRITICAL: Notice: Undefined property:Magento\Framework\Mail\EmailMessage\Interceptor::$zendMessage in /my/folder/public_html/vendor/magento/framework/Mail/EmailMessage.php on line 66 {"exception":"[object] (Exception(code: 0): Notice: Undefined property: Magento\Framework\Mail\EmailMessage\Interceptor::$zendMessage in /my/folder/public_html/vendor/magento/framework/Mail/EmailMessage.php on line 66 at /my/folder/public_html/vendor/magento/framework/App/ErrorHandler.php:61)"}
Line 66 has this code:
$this->zendMessage->setBody($mimeMessage);
and all the __construct is:
parent::__construct($encoding);
$mimeMessage = new ZendMimeMessage();
$mimeMessage->setParts($body->getParts());
$this->zendMessage->setBody($mimeMessage);
if ($subject) {
$this->zendMessage->setSubject($subject);
}
if ($sender) {
$this->zendMessage->setSender($sender->getEmail(), $sender->getName());
}
if (count($to) < 1) {
throw new InvalidArgumentException('Email message must have at list one addressee');
}
if ($to) {
$this->zendMessage->setTo($this->convertAddressArrayToAddressList($to));
}
if ($replyTo) {
$this->zendMessage->setReplyTo($this->convertAddressArrayToAddressList($replyTo));
}
if ($from) {
$this->zendMessage->setFrom($this->convertAddressArrayToAddressList($from));
}
if ($cc) {
$this->zendMessage->setCc($this->convertAddressArrayToAddressList($cc));
}
if ($bcc) {
$this->zendMessage->setBcc($this->convertAddressArrayToAddressList($bcc));
}
$this->mimeMessageFactory = $mimeMessageFactory;
$this->addressFactory = $addressFactory;
I have spent hours....Any help would be appreciated