More Mandrill Woes

Published 2 years ago by timgavin

Using Laravel 5.1.19 (LTS) and Guzzle 6.1

I've gone through LOTS of Laravel/Mandrill posts here and on SO and can't find a solution. Basically, everything seems to be set up correctly, yet mail is not sending. I'm not receiving any error messages and the laravel.log is empty, so I have absolutely nothing to go on as to why it's not sending. In fact, when using the password reset form I'm receiving the success message.

I'm using a .env file with the following

MAIL_DRIVER=mandrill
MANDRILL_SECRET=******************
MAIL_ENCRYPTION=

In config/mail.php I have

'from' => ['address' => 'tim@timgavin.name', 'name' => 'Tim Gavin'],

I've also set up a custom route in routes.php and tested with that

use Illuminate\Support\Facades\Mail;
Route::get('email', function ()
{
    \Mail::send('emails.test', [], function($message)
    {
      $message->to('tim@timgavin.name')->subject('test email');
    });
});

Any suggestions as to what's going on, where to look, or how to fix it? I'm quite the Laravel noob, so please be specific.. and patient. :)

opheliadesign

Did you add "guzzlehttp/guzzle": "~5.3|~6.0" to your composer file? This is a prerequisite for using the Mandrill driver.

Also, you should have a mandrill entry in your config/services.php file -

'mandrill' => [
    'secret' => 'your-mandrill-key',
],
timgavin

Yep, I'm using Guzzle 6.1 and have tried the services file. No dice.

Please sign in or create an account to participate in this conversation.