protected function sendVerificationMail($user)
{
try {
$mail = App::mailer()->create();
$mail->setTo($user->email)->setSubject(__('Activate your %site% account.', ['%site%' => App::module('system/site')->config('title')]))->setBody(App::view('system/user:mails/verification.php', compact('user', 'mail')), 'text/html')->send();
} catch (\Exception $e) {
throw new Exception(__('Unable to send verification link.'));
}
}