* eSync/Mail: make sure From is set correctly to the identity used, when sending by iOS

This commit is contained in:
leithoff 2016-07-21 13:36:43 +02:00
parent 7c1e06ff0d
commit b7e5d2fce2

View File

@ -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');