diff options
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r-- | lib/public/Util.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php index 20b4fe9c20d..179d4066c9b 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -14,6 +14,7 @@ use bantu\IniGetWrapper\IniGetWrapper; use OC\AppScriptDependency; use OC\AppScriptSort; use OCP\L10N\IFactory; +use OCP\Mail\IMailer; use OCP\Share\IManager; use Psr\Container\ContainerExceptionInterface; use Psr\Log\LoggerInterface; @@ -303,7 +304,7 @@ class Util { $host_name = $config->getSystemValueString('mail_domain', $host_name); $defaultEmailAddress = $user_part.'@'.$host_name; - $mailer = \OC::$server->getMailer(); + $mailer = \OC::$server->get(IMailer::class); if ($mailer->validateMailAddress($defaultEmailAddress)) { return $defaultEmailAddress; } |