* 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:
Klaus Leithoff 2014-06-24 13:38:32 +00:00
parent 545b35de5b
commit 2502f5500a

View File

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