Skip to main content
Mail Notifications · Revision #1

How do I add a custom mail layout?

How do I add a custom mail layout?

To add a custom mail layout you can use the addLayout() method on the mail action:

\Aero\Events\Models\MailAction::addLayout('acme', 'Acme');

Then you can create the emails.acme twig view, which will be used to render your layout:

Acme {{ body | raw }}