/**
  * Send an Expert registration link
  * @param $request_id
  * @param BongoRequestRepo $bongoRequestRepo
  * @param AppMailer $mailer
  * @return \Illuminate\Http\RedirectResponse
  */
 public function bongoSendLink($request_id, BongoRequestRepo $bongoRequestRepo, AppMailer $mailer)
 {
     $request = $bongoRequestRepo->sendLink($request_id);
     $mailer->sendExpertRegLinkEmail($request->request_link, $request->bongo_email);
     Session::flash('flash_message', 'The email was sent successfully!');
     return redirect()->back();
 }
Example #2
0
 public static function sendEmailResetLink($user_email, $token)
 {
     AppMailer::$to_reset = $user_email;
     AppMailer::$view_reset = "emails.password";
     AppMailer::$data_reset = compact('token');
     AppMailer::$subject_reset = "Bongo Afrika Reset Your Password";
     AppMailer::deliverReset();
 }
Example #3
0
 /**
  * Send the password reset link via e-mail.
  *
  * @param  \Illuminate\Contracts\Auth\CanResetPassword  $user
  * @param  string  $token
  * @param  \Closure|null  $callback
  * @return int
  */
 public function emailResetLink(CanResetPasswordContract $user, $token, Closure $callback = null)
 {
     // We will use the reminder view that was given to the broker to display the
     // password reminder e-mail. We'll pass a "token" variable into the views
     // so that it may be displayed for an user to click for password reset.
     //$view = $this->emailView;
     AppMailer::sendEmailResetLink($user->email, $token);
     /*return $this->mailer->send($view, compact('token', 'user'), function ($m) use ($user, $token, $callback) {
                 $m->to($user->getEmailForPasswordReset());
     
                 if (! is_null($callback)) {
                     call_user_func($callback, $m, $user, $token);
                 }
             });*/
 }