Support the ongoing development of Laravel.io →
Forms Validation Mail
Last updated 1 year ago.
0

Could you make a screenshot of the error? Only thing I see is $Input::all() as second parameter in Mail::send() but I think that's just a typo on this post. Actually you are just using smtp instead of the mandrill driver, which is ok but I just wanted to point it out. You could try to put the Mail::send() between comments to see if the exception is still thrown.

0

for use mandrill best package is :

doxxon/laravel-mandrill-request

for example :

public function send($fromEmail = NULL,$toEmail,$type,$code = NULL)
    {
        
        $fromEmail = $fromEmail ? $fromEmail : Settings::get('sender_email');

        $payload = 
        [
            'message' => 
            [
                'subject'    => Lang::get("email.$type"),
                'html'       => (string)View::make("email::$type",['code' => $code]),
                'from_email' => $fromEmail,
                'to'         => [['email' => $toEmail]]
            ]
        ];

        $response = Mandrill::request('messages/send', $payload);

        return $response;
    }
Last updated 9 years ago.
0

did u set the

driver' => 'mandrill'

Last updated 9 years ago.
0

You don't have to set the driver to mandrill. You can send with smtp via Mandrill.

Last updated 9 years ago.
0

Have you checked out the sairiz/mandrill package?

This is a Laravel package from Mandrill itself. View the docs here.

0

This is a L4 package.

hansvn said:

Have you checked out the sairiz/mandrill package?

This is a Laravel package from Mandrill itself. View the docs here.

0

Please RTFM: http://laravel.com/docs/5.0/mail

To use the Mandrill driver, set the driver option to mandrill in your config/mail.php configuration file. Next, create an config/services.php configuration file if one does not already exist for your project. Verify that it contains the following options:

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

0

Sign in to participate in this thread!

Eventy

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.

© 2024 Laravel.io - All rights reserved.