Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Send email code snippet (in controller)
  2.  
  3. use Mail;
  4.  
  5. Mail::send([], [], function ($m) use ($user, $pword){
  6. $m -> from('retrofitnoreply@gmail.com', 'Retrofit');
  7. $m-> to($user->email, $user->full_name) -> subject('First password for your account.') -> setBody('Hi, your login password is ' .$pword);
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement