diff options
author | itheiss <ingo.theiss@i-matrixx.de> | 2013-03-22 10:07:06 +0100 |
---|---|---|
committer | itheiss <ingo.theiss@i-matrixx.de> | 2013-03-22 10:07:06 +0100 |
commit | 568c256aff7b3de3a01d8a7ad32ca24430c79948 (patch) | |
tree | 7ac17a16d667b94d05f7c45a6c184dd3f6713c23 /lib/public/util.php | |
parent | a035ed0c191186e9aecedfac3b2f383907ec7d82 (diff) | |
download | nextcloud-server-568c256aff7b3de3a01d8a7ad32ca24430c79948.tar.gz nextcloud-server-568c256aff7b3de3a01d8a7ad32ca24430c79948.zip |
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'
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index db07cbcfff3..6744c2d37bd 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -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)) { |