Fix error on account registration

This commit is contained in:
Toby Zerner 2015-06-01 17:55:41 +09:30
parent c7a6f8650e
commit 82377f2302

View File

@ -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');
});
}