Templates

The src/api/templates/emails folder contains the Twig templates of the emails.

By default, all templates should extend the src/api/templates/emails/emails.html.twig template.

In other words, the templates should only contain the body of the email, while the emails.html.twig template contains the wrapping elements (header, footer, etc.).

note

📣  Of course, you may update the emails.html.twig template.

Symfony provides the Inky framework that converts simple HTML tags into the complex table HTML required for emails. For more details, you may also take a look at the Symfony documentation.

If you want to add new CSS rules, put them in the src/api/assets/css/emails.css.