Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public static function send_welcome_mail($user,$code)
  2. {
  3. Mail::send('auth.email.welcome',['user'=>$user,'code'=>$code], function ($message)
  4. {
  5. $message->subject('Welcome');
  6. $message->from('info@example.com', 'Example');
  7. $message->to('info@exampleReceiver.com');
  8. });
  9. }
  10.  
  11. public static function send_welcome_mail($user,$code,$receiver)
  12. {
  13. Mail::send('auth.email.welcome',['user'=>$user,'code'=>$code], function ($message)
  14. {
  15. $message->subject('Welcome');
  16. $message->from('info@example.com', 'Example');
  17. $message->to($receiver);
  18. });
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement