Support the ongoing development of Laravel.io →
Configuration Mail

Hello, I've put together the following code to test if I can send files with Mandrill.

Mail::send('emails.internal.log', [], function($message) {
    $file = storage_path() . '/logs/laravel-2015-06-25.log';
    $message->attach($file);
    $message->to('me@gmail.com')
        ->subject('Nightly Log - 2015-06-25');
});

It provides no error code, but I also don't get an email... Mandrill shows nothing either....

Any help would be appreciated! Thanks!

Last updated 3 years ago.
0

@martindevnow

set driver name Mandrill,


'driver'  => 'mandrill'

refer this link : http://laravel.io/forum/07-06-2014-mail-with-mandrill-doesnt-work

Last updated 9 years ago.
0

Agree with @kumarramalingam - check if you're actually using Mandrill (config/mail and config/services files), send an email without an attachment first.

0

That isn't the problem. The driver is mandrill and I have sent many emails (without attachments) using Mandrill.

Any other ideas?

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.