mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Fix #2499
The mail domain can now be configured in config.php and get´s used in function getDefaultEmailAddress. e.g. 'mail_domain' => 'example.com'
This commit is contained in:
parent
a035ed0c19
commit
568c256aff
1 changed files with 1 additions and 0 deletions
|
|
@ -217,6 +217,7 @@ class Util {
|
|||
*/
|
||||
public static function getDefaultEmailAddress($user_part) {
|
||||
$host_name = self::getServerHostName();
|
||||
$host_name = \OC_Config::getValue('mail_domain', $host_name);
|
||||
$defaultEmailAddress = $user_part.'@'.$host_name;
|
||||
|
||||
if (\OC_Mail::ValidateAddress($defaultEmailAddress)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue