I'm trying to send raw mail but I;m getting an error "Cannot send message without a sender address" and I don't seem to see where I'm going wrong. I've provided the sender email in the .env file but it's still giving that error

My Controller!

```
  <?php

    namespace App\Http\Controllers\User;

    use App\Http\Controllers\Controller;
    use Illuminate\Support\Facades\Mail;

    class ContactController extends Controller
    {
        public function show()
        {
            return view('user.contact');
        }

        public function store()
        {
            request()->validate(['email' => 'required|email']);
            Mail::raw('it works', function ($message) {
                $message->to(request('email'))
                    ->subject('Hi There');
            });
            return redirect()->back();
        }

    }

```

My .env file

```
MAIL_MAILER=log
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=admin@example.com
MAIL_FROM_NAME="${APP_NAME}"

```

My mail.php file

```
  <?php

    return [

        'mailers' => [
            'smtp' => [
                'transport' => 'smtp',
                'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
                'port' => env('MAIL_PORT', 587),
                'encryption' => env('MAIL_ENCRYPTION', 'tls'),
                'username' => env('MAIL_USERNAME'),
                'password' => env('MAIL_PASSWORD'),
                'timeout' => null,
                'auth_mode' => null,
            ],

            'ses' => [
                'transport' => 'ses',
            ],

            'mailgun' => [
                'transport' => 'mailgun',
            ],

            'postmark' => [
                'transport' => 'postmark',
            ],

            'sendmail' => [
                'transport' => 'sendmail',
                'path' => '/usr/sbin/sendmail -bs',
            ],

            'log' => [
                'transport' => 'log',
                'channel' => env('MAIL_LOG_CHANNEL'),
            ],

      'array' => [
            'transport' => 'array',
        ],
    ],

    'markdown' => [
        'theme' => 'default',

        'paths' => [
            resource_path('views/vendor/mail'),
        ],
    ],

];

```

My form!

```
 <form action="{{ route('contact')}}" method="post">
     @csrf

     <div class="form-group">
         <label>E-mail</label>
         <input type="email" name="email" class="form-control">
         @error('email')
         <p style="color: red; font-size: 15px; margin-top: 5px">{{ $message }}</p>
         @enderror
     </div>

     <button type="submit" class="btn btn-primary">Submit</button>
    </form>

```

I'm trying to send raw mail but I;m getting an error

> 
> Cannot send message without a sender address
> 
> 
> 

and I don't seem to see where I'm going wrong. I've provided the sender email in the .env file but it's still giving that error