Browse Source

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'
remotes/origin/stable6
itheiss 13 years ago
parent
commit
568c256aff
  1. 1
      lib/public/util.php

1
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)) {

Loading…
Cancel
Save