summaryrefslogtreecommitdiffstats
path: root/lib/public/util.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-19 18:55:27 +0100
committerLukas Reschke <lukas@owncloud.com>2015-03-16 12:47:05 +0100
commitf92f3a1a6ecbce06fbe24204ef12b2eeeb0f0d15 (patch)
treedca224d1136cae6d5a971cd110a0591ce0d8d1ef /lib/public/util.php
parent283476a2f7c200912352eb4db097f540e3993e75 (diff)
downloadnextcloud-server-f92f3a1a6ecbce06fbe24204ef12b2eeeb0f0d15.tar.gz
nextcloud-server-f92f3a1a6ecbce06fbe24204ef12b2eeeb0f0d15.zip
Incorporate review changes
Diffstat (limited to 'lib/public/util.php')
-rw-r--r--lib/public/util.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 71ab8cabce5..338c216f255 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -294,7 +294,8 @@ class Util {
$host_name = \OC_Config::getValue('mail_domain', $host_name);
$defaultEmailAddress = $user_part.'@'.$host_name;
- if (\OCP\Mail\Util::validateMailAddress($defaultEmailAddress)) {
+ $mailer = \OC::$server->getMailer();
+ if ($mailer->validateMailAddress($defaultEmailAddress)) {
return $defaultEmailAddress;
}