/** * Handle the event. * * @param UserPasswordChanged $event * @return void */ public function handle(UserPasswordChanged $event) { MailHelper::queueSendTemplate('user_password_changed', $event->getParamsForMailing(), $event->locale); }
public function postInactive() { MailHelper::sendTemplate('welcome', array_merge([MailHelper::EMAIL_SUBJECT => trans('label.welcome_to_') . appName(), MailHelper::EMAIL_TO => $this->auth_user->email, MailHelper::EMAIL_TO_NAME => $this->auth_user->display_name, 'id' => $this->auth_user->id, 'display_name' => $this->auth_user->display_name, 'name' => $this->auth_user->name, 'email' => $this->auth_user->email, 'password' => '******', 'activation_code' => $this->auth_user->activation_code, 'url_activate' => homeUrl('auth/activate/{id}/{activation_code}', ['id' => $this->auth_user->id, 'activation_code' => $this->auth_user->activation_code])], $this->globalViewParams)); $this->theme->title(trans('pages.account_inactive_title')); $this->theme->description(trans('pages.account_inactive_title')); return view($this->themePage('auth.inactive'), ['resend' => true]); }
/** * Handle the event. * * @param UserAfterRegistered $event * @return void */ public function handle(UserAfterRegistered $event) { $viewPath = $event->fromSocial ? 'welcome_social' : 'welcome'; MailHelper::queueSendTemplate($viewPath, $event->getParamsForMailing(), $event->locale); }