laravel-auth: Swift_TransportException Cannot send message without a sender address

I’m getting this message with the register form. I’m setup for local hostmail from xampp, and when I test the mail with plain php. The mail works fine.

Other than the .env

MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=info@mydomain.com MAIL_PASSWORD=mypassword MAIL_ENCRYPTION=null

and the config/mail.php ‘sendmail’ => ‘"C:\xampp\sendmail\sendmail.exe" -t’,

what else do I need to update? This is my error message

Swift_TransportException Cannot send message without a sender address

if (!$reversePath = $this->getReversePath($message)) {
            $this->throwException(new Swift_TransportException(
                'Cannot send message without a sender address'
                )
            );
        }

I have also cleared all my cache php artisan cache:clear php artisan route:cache php artisan view:clear php artisan config:cache

thanks Si

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 3
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Just set the MAIL_FROM_ADDRESS = from@example.com or with correct value you will not get any error.