Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. return [
  2.  
  3. 'driver' => env('MAIL_DRIVER', 'smtp'),
  4.  
  5. 'host' => env('MAIL_HOST', 'gator.hostgator.com'),
  6.  
  7. 'port' => env('MAIL_PORT', 587),
  8.  
  9. 'from' => [
  10. 'address' => 'myemail@solve.life',
  11. 'name' => 'Hero Directory',
  12. ],
  13.  
  14. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  15.  
  16. 'username' => env('myemail@solve.life'),
  17.  
  18. 'password' => env('mypassword'),
  19.  
  20. 'sendmail' => '/usr/sbin/sendmail -bs',
  21.  
  22. ];
  23.  
  24. MAIL_DRIVER=smtp
  25. MAIL_HOST=gator.hostgator.com
  26. MAIL_PORT=465
  27. MAIL_USERNAME=myemail@solve.life
  28. MAIL_PASSWORD=mypassword
  29. MAIL_ENCRYPTION=ssl
  30.  
  31. $data = ['email' => $email, 'full_name' => $full_name, 'confirmation_code' => $confirmation_code];
  32.  
  33. $mail_verification = Mail::send('email.verify',$data, function($message) use ($data){
  34. $message->to($data['email'], $data['full_name']);
  35. $message->subject('Verify your email address');
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement