mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:28:45 +01:00
only allow to fake the Sender with an Alias Identity, when an emailadmin defined profile is used
This commit is contained in:
parent
d638ba372a
commit
3e9fa46b21
@ -697,8 +697,8 @@
|
||||
$_mailObject->CharSet = $this->displayCharset;
|
||||
// you need to set the sender, if you work with different identities, since most smtp servers, dont allow
|
||||
// sending in the name of someone else
|
||||
if ($_identity->id != $activeMailProfile->id) error_log(__METHOD__.__LINE__.' Faking From/SenderInfo for '.$activeMailProfile->emailAddress.' Identitiy to use for sending:'.array2string($_identity));
|
||||
$_mailObject->Sender = ($_identity->id<0 ? $_identity->emailAddress : $activeMailProfile->emailAddress);
|
||||
if ($_identity->id != $activeMailProfile->id) error_log(__METHOD__.__LINE__.' Faking From/SenderInfo for '.$activeMailProfile->emailAddress.' with ID:'.$activeMailProfile->id.'. Identitiy to use for sending:'.array2string($_identity));
|
||||
$_mailObject->Sender = ($_identity->id<0 && $activeMailProfile->id < 0 ? $_identity->emailAddress : $activeMailProfile->emailAddress);
|
||||
$_mailObject->From = $_identity->emailAddress;
|
||||
$_mailObject->FromName = $_mailObject->EncodeHeader($_identity->realName);
|
||||
$_mailObject->Priority = $_formData['priority'];
|
||||
|
Loading…
Reference in New Issue
Block a user