From 84b81cb1f3cdcb59fa9960d3fbe019761b66e8d4 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 10 Dec 2021 13:42:10 +0100 Subject: [PATCH] Set From identity base on identLabel preference --- mail/inc/class.mail_compose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index 04a048d261..7021280e25 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -2463,7 +2463,7 @@ class mail_compose $email_From = $_identity['ident_email'] ? $_identity['ident_email'] : $activeMailProfile['ident_email']; // Try to fix identity email with no domain part set $_mailObject->setFrom(Mail::fixInvalidAliasAddress(Api\Accounts::id2name($_identity['account_id'], 'account_email'), $email_From), - Mail::generateIdentityString($_identity,false)); + mail_tree::getIdentityName($_identity)); $_mailObject->addHeader('X-Priority', $_formData['priority']); $_mailObject->addHeader('X-Mailer', 'EGroupware-Mail');