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:
itheiss 2013-03-22 10:07:06 +01:00
Родитель a035ed0c19
Коммит 568c256aff
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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