A
A
andre77772016-11-03 07:03:00
Laravel
andre7777, 2016-11-03 07:03:00

How to run mailgun on laravel?

Laravel 5.2
in mailgun has been registered and verified. Got a key.
added to composer.json:

"require": {
       ...
        "guzzlehttp/guzzle": "~5.3|~6.0",
        "mews/captcha": "^2.1"
    },

php composer.phar update
php composer.phar dump-autoload
trying to send an email, it says
FatalErrorException in PostFile.php line 71:
Class 'GuzzleHttp\Stream\Stream' not found

what else does he need?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hakkol, 2016-11-03
@andre7777

1) Don't use the "composer update" command to install a new package, use composer require guzzlehttp/guzzle
2) Check that there is a guzzlehhtp folder in the vendor folder
3) The following configuration should be in the .env file:

MAIL_DRIVER=mailgun
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAILGUN_DOMAIN=sandboxXXXXXX.mailgun.org
MAILGUN_SECRET=key-XXX

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question