Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2017
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. MAIL_DRIVER=sendmail
  2.  
  3. MAIL_DRIVER=smtp
  4. MAIL_HOST=smtp.gmail.com
  5. MAIL_PORT=587
  6. MAIL_USERNAME=test@gmail.com
  7. MAIL_PASSWORD=***
  8. MAIL_FROM_ADDRESS=test@gmail.com
  9. MAIL_ENCRYPTION=tls
  10. MAIL_FROM_NAME=Test
  11.  
  12. Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
  13. 535 5.7.8 https://support.google.com/mail/?p=BadCredentials b91sm1640930otc.29 - gsmtp
  14. "
  15.  
  16. MAIL_DRIVER = smtp
  17. MAIL_HOST = smtp.gmail.com
  18. MAIL_PORT = 587
  19. MAIL_USERNAME = your-gmail-username
  20. MAIL_PASSWORD = your-application-specific-password
  21. MAIL_ENCRYPTION = tls
  22.  
  23. php artisan config:cache
  24.  
  25. php artisan make:controller MailController --plain
  26.  
  27. Route::get('sendbasicemail','MailController@basic_email');
  28. Route::get('sendhtmlemail','MailController@html_email');
  29. Route::get('sendattachmentemail','MailController@attachment_email');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement