Let me explain first what I'm trying to achieve 1. User submits a form requesting membership, app sends a mail to user acknowledging user's request 2. Admin approves or denies the request, app sends mail to user notifying them
With mailtrap, i have been able to make this work locally. Moving to production, I have switched to using Sparkpost following the steps in sending mail with sparkpost tutorial But I keep getting the error
Class 'GuzzleHttp\Client' not found in TransportManager.php (line 185)
I can see the guzzle folder inside vendor folder after running composer require guzzlehttp/guzzle
"require": {
"php": ">=5.6.4",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0"
},
I just don't understand why i'm getting this error or how to fix it. Need help resolving this issue
You may want to ensure the you first have a
require './vendor/autoload.php
included (which should be the case in Laravel by default).If
autoload.php
is already included and you still get this error, then according to this filed bug - https://github.com/SparkPost/php-sparkpost/issues/37, you will need to manually runphp composer.phar require guzzlehttp/guzzle