From 5d48dd090cccc69ad9362eee45003cb1a3cd38ee Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 27 Jan 2023 21:40:19 +0200 Subject: [PATCH] group email account use from name --- application/Espo/Core/Mail/Account/GroupAccount/Account.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/Espo/Core/Mail/Account/GroupAccount/Account.php b/application/Espo/Core/Mail/Account/GroupAccount/Account.php index 6bc69297b3..abaf6aadc3 100644 --- a/application/Espo/Core/Mail/Account/GroupAccount/Account.php +++ b/application/Espo/Core/Mail/Account/GroupAccount/Account.php @@ -267,6 +267,10 @@ class Account implements AccountInterface ->withAuthMechanism($this->entity->getSmtpAuthMechanism()); } + if ($this->entity->getFromName()) { + $smtpParams = $smtpParams->withFromName($this->entity->getFromName()); + } + $handlerClassName = $this->entity->getSmtpHandlerClassName(); if (!$handlerClassName) {