3

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
[email protected]
MAIL_PASSWORD=password
MAILGUN_SECRET=key-....
[email protected]
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.

4
  • have you run composer install ? Commented May 25, 2017 at 13:53
  • @davidzucco Check by doing a composer update and composer dump-autoload once Commented May 25, 2017 at 14:00
  • @davidzucco also try installing the package like this in your composer.json "guzzlehttp/guzzle": "~5.3|~6.0" Commented May 25, 2017 at 14:05
  • @davidzucco Most important do a php artisan config:clear as well Commented May 25, 2017 at 14:06

1 Answer 1

1

These are the possible quick fixes have a try in the order I explained,

1) do a composer update and composer dump-autoload once

2) clear the config cache by running php artisan config:clear

If nothing works try changing the package to "guzzlehttp/guzzle": "~5.3|~6.0" and run the above commands to install the package and clear the config cache.

It should work when you run the second step.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.