How to use SwiftMailer plugins in laravel mailable

Here's the SwiftMailer plugin sample code, but it didn't use the laravel mailble.

$decorator = new Swift_Plugins_DecoratorPlugin($replacements);

$mailer->registerPlugin($decorator);
$message = (new Swift_Message())
->setSubject('Important notice for {username}')
->setBody(
"Hello {username}, you requested to reset your password.\n" .
"Please visit https://example.com/pwreset and use the reset code {resetcode} to set a new password."
);


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/31hxGhY
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

I am unable to figure out how to create payment collection request, after a form has been submitted in laravel

laravel, mysql transaction not working after failed one time