Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MAIL_DRIVER=sendmail
- MAIL_DRIVER=smtp
- MAIL_HOST=smtp.gmail.com
- MAIL_PORT=587
- MAIL_USERNAME=test@gmail.com
- MAIL_PASSWORD=***
- MAIL_FROM_ADDRESS=test@gmail.com
- MAIL_ENCRYPTION=tls
- MAIL_FROM_NAME=Test
- Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
- 535 5.7.8 https://support.google.com/mail/?p=BadCredentials b91sm1640930otc.29 - gsmtp
- "
- MAIL_DRIVER = smtp
- MAIL_HOST = smtp.gmail.com
- MAIL_PORT = 587
- MAIL_USERNAME = your-gmail-username
- MAIL_PASSWORD = your-application-specific-password
- MAIL_ENCRYPTION = tls
- php artisan config:cache
- php artisan make:controller MailController --plain
- Route::get('sendbasicemail','MailController@basic_email');
- Route::get('sendhtmlemail','MailController@html_email');
- Route::get('sendattachmentemail','MailController@attachment_email');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement