Support the ongoing development of Laravel.io →
Mail Queues Packages
Last updated 2 years ago.
0
 $response = Mail::send('emails.welcome',[], function($message) use ($data)
        {

            $message->from('to-email, 'no-reply');

            $message->to('from-email')->subject('test');

        });

        dd($response->getBody()->getContents());//Returns Mandrill response

"[{"email":"to-email","status":"sent","_id":"7ec4ad41ccf84eef904b59b4c3955c21","reject_reason":null}]"

From there you can create a webhook on Mandrill and leverage the already auto-loaded Mandrill SDK to trigger updates to your DB on hard-bounces etc.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

psybaron psybaron Joined 18 Feb 2014

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.