зеркало из https://github.com/nextcloud/server.git
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:
Родитель
a035ed0c19
Коммит
568c256aff
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче