daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Nov 6th, 2018 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function sendEmail($id){
  2.     try{
  3.         $user= Users::find($id);
  4.         $data = array('username'=>$user->name, 'email'=>$user->email);
  5.         Mail::send('emails.hapstics', $data, function ($message) use($data){
  6.             $message->to($data['email'], $data['username'])->subject('Test Subject');
  7.         });
  8.  
  9.         return redirect('leads');
  10.     }
  11.     catch(Exception $e){}
  12. }
  13.    
  14. MAIL_DRIVER=smtp
  15. MAIL_HOST=smtp.mailgun.org
  16. MAIL_PORT=587
  17. MAIL_USERNAME=*hidden
  18. MAIL_PASSWORD=*hidden
  19. MAIL_FROM_NAME=*hidden
  20. MAILGUN_DOMAIN=*hidden
  21. MAILGUN_SECRET=*hidden
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top