From b7e5d2fce23f58b3118b26faccead88a5b4110e5 Mon Sep 17 00:00:00 2001 From: leithoff Date: Thu, 21 Jul 2016 13:36:43 +0200 Subject: [PATCH] * eSync/Mail: make sure From is set correctly to the identity used, when sending by iOS --- mail/inc/class.mail_zpush.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mail/inc/class.mail_zpush.inc.php b/mail/inc/class.mail_zpush.inc.php index c2efc5c5b8..c5da8f1786 100644 --- a/mail/inc/class.mail_zpush.inc.php +++ b/mail/inc/class.mail_zpush.inc.php @@ -384,8 +384,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail, $this->mail->parseRawMessageIntoMailObject($mailObject,$smartdata->mime); // Horde SMTP Class uses utf-8 by default. as we set charset always to utf-8 $mailObject->Sender = $activeMailProfile['ident_email']; - $mailObject->From = $activeMailProfile['ident_email']; - $mailObject->FromName = Mail::generateIdentityString($activeMailProfile,false); + $mailObject->setFrom($activeMailProfile['ident_email'],Mail::generateIdentityString($activeMailProfile,false)); $mailObject->addHeader('X-Mailer', 'mail-Activesync');