I get this error with stock email settings in Laravel 5.1 Homestead when I try to send a password reset mail.
Swift_TransportException in AbstractSmtpTransp
go to you .env
file which is located at the root of your folder
Then set your configuration for mail like this if you are also using smpt.mailtrap.io
as MAIL_HOST.
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=******username******
MAIL_PASSWORD=******password******
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=john@example.com
MAIL_FROM_NAME="${APP_NAME}"
now to set your MAIL_USERNAME
and MAIL_PASSWORD
click here to go to mailtrap
now sign up or login if you already have an account for it.
then click Inbox then select demo inbox there you'll find the integration dropdown then select for Laravel and it will provide you with the username and password required to fulfill you .env
file.
then save the information in your .env
file for you Mail Configuration.
Now the most important part is that you run these two command line in your terminal.
run php artisan serve
again
run php artisan config:clear
Then do your process and check out the mailtrap inbox. for me it worked like this.