diff --git a/api/src/Mail/Account.php b/api/src/Mail/Account.php index fe3a3cf1e2..cf74bdbc32 100644 --- a/api/src/Mail/Account.php +++ b/api/src/Mail/Account.php @@ -1607,11 +1607,11 @@ class Account implements \ArrayAccess { $name = $account['acc_name']; } - if (strpos($account['ident_email'], '@') !== false || !trim($account['ident_email'])) + if (strpos($account['ident_email'], '@') !== false || trim($account['ident_email']) !='') { $name .= ' <'.$account['ident_email'].'>'; } - elseif(strpos($account['acc_imap_username'], '@') !== false || !trim($account['acc_imap_username'])) + elseif(strpos($account['acc_imap_username'], '@') !== false || trim($account['acc_imap_username']) !='') { $name .= ' <'.$account['acc_imap_username'].'>'; }