From 1b57eb3c9bdaf89a92143989ba982173a70028cf Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 1 Jun 2015 17:55:41 +0930 Subject: [PATCH] Fix error on account registration --- .../core/src/Core/Handlers/Events/EmailConfirmationMailer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/src/Core/Handlers/Events/EmailConfirmationMailer.php b/framework/core/src/Core/Handlers/Events/EmailConfirmationMailer.php index 40ad7912a..047540672 100755 --- a/framework/core/src/Core/Handlers/Events/EmailConfirmationMailer.php +++ b/framework/core/src/Core/Handlers/Events/EmailConfirmationMailer.php @@ -32,8 +32,8 @@ class EmailConfirmationMailer $user = $event->user; $data = $this->getPayload($user, $user->email); - $this->mailer->send(['text' => 'flarum::emails.activateAccount'], $data, function ($message) use ($email) { - $message->to($email); + $this->mailer->send(['text' => 'flarum::emails.activateAccount'], $data, function ($message) use ($user) { + $message->to($user->email); $message->subject('Activate Your New Account'); }); }