$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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community