Laravel, Mailgun 'Class GuzzleHttp\Client name not found'

Viewed 869

I am receiving the following error shown below when attempting to use Mailgun to send a confirmation email from my Laravel project.

Here is my .env file:

MAIL_DRIVER=mailgun
MAILGUN_DOMAIN=sandbox......mailgun.org
MAIL_HOST=smtp.mailgun.org
MAIL_PORT=587
MAIL_USERNAME=postmaster@sandbox......mailgun.org
MAIL_PASSWORD=password
MAILGUN_SECRET=key-....
MAIL_FROM=cloud@sandbox.....mailgun.org
MAIL_ENCRYPTION=tls

Here is my mail.php file:

'driver' => env('MAIL_DRIVER', 'mailgun'),
'host' => env('MAIL_HOST', 'smtp.mailgun.com'),
'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),

And this is in my composer.json:

"guzzlehttp/guzzle": "^6.2"

Any help of any kind at all would be so greatly appreciated. I simply don't understand the issue.

1 Answers
Related