forked from extern/egroupware
Try to fix identity with no domain set while sending mail out
This commit is contained in:
parent
73e2243b33
commit
a4d9115d64
@ -2285,7 +2285,9 @@ class mail_compose
|
|||||||
{
|
{
|
||||||
error_log(__METHOD__.__LINE__.' Faking From/SenderInfo for '.$activeMailProfile['ident_email'].' with ID:'.$activeMailProfile['ident_id'].'. Identitiy to use for sending:'.array2string($_identity));
|
error_log(__METHOD__.__LINE__.' Faking From/SenderInfo for '.$activeMailProfile['ident_email'].' with ID:'.$activeMailProfile['ident_id'].'. Identitiy to use for sending:'.array2string($_identity));
|
||||||
}
|
}
|
||||||
$_mailObject->setFrom($_identity['ident_email'] ? $_identity['ident_email'] : $activeMailProfile['ident_email'],
|
$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::generateIdentityString($_identity,false));
|
||||||
|
|
||||||
$_mailObject->addHeader('X-Priority', $_formData['priority']);
|
$_mailObject->addHeader('X-Priority', $_formData['priority']);
|
||||||
|
Loading…
Reference in New Issue
Block a user