Laravel 5.1 mail sending error swift_ TransportException

error message

Swift_ TransportException in AbstractSmtpTransport.php line 162: Cannot send message without a sender

Throw an exception

problem finding

When using the user authentication system of laravel, PHP Artisan make:auth When the password is reset, /password/reset sends an e-mail and throws an exception

Problem solving

It means that you cannot send information without senders. It should be the problem of configuration parameters

Ensure that the e-mail sending configuration in the. Env configuration file is filled in correctly

config/mail. PHP line 58 in the configuration file 'from '= > [' address' => null, 'name' => Null] , fill in the address and name to solve the problem

Email sent successfully

Similar Posts: