From f0b49cd467fb474a60076dcce06d840351da50b8 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 2 Mar 2023 15:16:44 +0200 Subject: [PATCH] fix auto reply --- .../Core/Mail/Account/GroupAccount/Hooks/AfterFetch.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/Espo/Core/Mail/Account/GroupAccount/Hooks/AfterFetch.php b/application/Espo/Core/Mail/Account/GroupAccount/Hooks/AfterFetch.php index 5148ca1cc9..9f23d441c4 100644 --- a/application/Espo/Core/Mail/Account/GroupAccount/Hooks/AfterFetch.php +++ b/application/Espo/Core/Mail/Account/GroupAccount/Hooks/AfterFetch.php @@ -320,19 +320,19 @@ class AfterFetch implements AfterFetchInterface $senderParams = SenderParams::create(); if ($inboundEmail->getFromName()) { - $senderParams->withFromName($inboundEmail->getFromName()); + $senderParams = $senderParams->withFromName($inboundEmail->getFromName()); } if ($inboundEmail->getReplyFromAddress()) { - $senderParams->withFromAddress($inboundEmail->getReplyFromAddress()); + $senderParams = $senderParams->withFromAddress($inboundEmail->getReplyFromAddress()); } if ($inboundEmail->getReplyFromName()) { - $senderParams->withFromName($inboundEmail->getReplyFromName()); + $senderParams = $senderParams->withFromName($inboundEmail->getReplyFromName()); } if ($inboundEmail->getReplyToAddress()) { - $senderParams->withReplyToAddress($inboundEmail->getReplyToAddress()); + $senderParams = $senderParams->withReplyToAddress($inboundEmail->getReplyToAddress()); } $sender