From 34d4fb71cb10e15274234c710c8d8e8ba6eb4f54 Mon Sep 17 00:00:00 2001 From: Visine Date: Sun, 2 Feb 2020 04:34:35 +0300 Subject: [PATCH] Add support WireMailSmtp module --- LoginRegister.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LoginRegister.module b/LoginRegister.module index 0fa7234..fee91f1 100644 --- a/LoginRegister.module +++ b/LoginRegister.module @@ -674,7 +674,7 @@ class LoginRegister extends WireData implements Module, ConfigurableModule { $config = $this->wire('config'); $confirmURL = $this->wire('page')->httpUrl() . "?register_confirm=" . urlencode($confirmCode); - $mail = new WireMail(); + $mail = $this->wire('mail')->new(); $mail->subject(sprintf($this->_('Confirm account at %s'), $config->httpHost)); $mail->to($email);