Swift_TransportException: Cannot send message without a sender address in file code example

Example 1: Swift_TransportException Cannot send message without a sender address

php artisan config:cache

Example 2: Swift_TransportException Cannot send message without a sender address

php artisan view:clear;
php artisan config:cache;
php artisan cache:clear;
php artisan route:cache;

Example 3: Cannot send message without a sender address

MAIL_FROM_ADDRESS=null 'Goto .env file and add your sender address here'

Example 4: Swift_TransportException Cannot send message without a sender address

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=your_username
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=null
[email protected] **here**
MAIL_FROM_NAME="${APP_NAME}"

Tags:

Misc Example