Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. return [
  2.  
  3. 'driver' => env('MAIL_DRIVER'),
  4.  
  5.  
  6. 'host' => env('MAIL_HOST'),
  7.  
  8. 'port' => env('MAIL_PORT'),
  9.  
  10.  
  11. 'from' => [
  12. 'address' => env('MAIL_FROM_ADDRESS'),
  13. 'name' => env('MAIL_FROM_NAME'),
  14. ],
  15.  
  16. 'encryption' => env('MAIL_ENCRYPTION'),
  17.  
  18.  
  19. 'username' => env('MAIL_USERNAME'),
  20.  
  21. 'password' => env('MAIL_PASSWORD'),
  22.  
  23. 'sendmail' => '/usr/sbin/sendmail -bs',
  24.  
  25.  
  26. 'markdown' => [
  27. 'theme' => 'default',
  28.  
  29. 'paths' => [
  30. resource_path('views/vendor/mail'),
  31. ],
  32. ],
  33.  
  34. ];
  35.  
  36. MAIL_DRIVER=smtp
  37. MAIL_HOST=smtp.gmail.com
  38. MAIL_PORT=587
  39. MAIL_USERNAME=j*********
  40. MAIL_PASSWORD=***********
  41. MAIL_ENCRYPTION=tls
  42. MAIL_FROM_ADDRESS=j*******1805@gmail.com
  43. MAIL_FROM_NAME=*************
  44.  
  45. Mail::send('emails.confirma',$rq,function($message) use($rq){
  46. $message->subject('Confirmacion de Registro');
  47. $message->to($rq['email']);
  48. });
  49.  
  50. (1/1) Swift_TransportException
  51.  
  52. Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement