Mandrill
Mandrill copied to clipboard
Override Mandrill Messages
I want to save email content and its data in DB after send. As Mandrill is shutting down its services on 11th Jan 2020 and we are using its API via this Library, Therefore we have to save all email data in DB and it will be reprocessed after there service comes back to normal state.
We need to override this function sendTemplate of class Mandrill_Messages to get data saved in DB, This will be the shortest hack that we can do as we are calling Via the Facade.
MandrillMail::messages()->sendTemplate("cng-forgot-password", $content, $message);
What will be the correct way to do this in Laravel 5.2?