SHARE
TWEET

Untitled

a guest Jun 30th, 2018 299 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'driver' => env('MAIL_DRIVER', 'smtp'),
  2. 'host' => env('MAIL_HOST', 'smtp.gmail.com'),
  3. 'port' => env('MAIL_PORT', 465),
  4. 'from' => ['address' => 'email@gmail.com', 'name' => 'name'],
  5. 'encryption' => env('ssl'),
  6. 'username' => env('MAIL_USERNAME'),
  7. 'password' => env('MAIL_PASSWORD'),
  8. 'sendmail' => '/usr/sbin/sendmail -bs',
  9. 'pretend' => false,
  10.    
  11. MAIL_DRIVER=smtp
  12. MAIL_HOST=smtp.gmail.com
  13. MAIL_PORT=465
  14. MAIL_USERNAME=email@gmail.com
  15. MAIL_PASSWORD=*******
  16. MAIL_ENCRYPTION=ssl
  17.    
  18. Mail::send('emails.contact',$plan,function($msj) use ($plan)
  19. {
  20.     $msj->to($plan[0]['correoParaPlanTrabajoAlerta']);
  21.     $msj->subject($plan[0]['correoAsuntoPlanTrabajoAlerta']);
  22.     $msj->attach(public_path().'/plantrabajo.html');
  23. });
  24.    
  25. Expected response code 220 but got code "", with message ""
  26.    
  27. ...
  28. 'encryption' => env('MAIL_ENCRYPTION'),
  29. ...
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top