mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
* Notification/Mail: make sure acc_smtp_username is used (if available), to cope with strict mailserver settings to prevent faking sender information
This commit is contained in:
parent
545b35de5b
commit
2502f5500a
@ -60,7 +60,7 @@ class send extends egw_mailer
|
||||
$this->Username = $account->acc_smtp_username;
|
||||
$this->Password = $account->acc_smtp_password;
|
||||
$this->defaultDomain = $account->acc_domain;
|
||||
$this->Sender = emailadmin_account::rfc822($account);
|
||||
$this->Sender = $account->acc_smtp_username?$account->acc_smtp_username:emailadmin_account::rfc822($account);
|
||||
|
||||
$this->Hostname = $GLOBALS['egw_info']['server']['hostname'];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user