Simple function in mail template

Greetings to all.
I would like to create a custom function inside the mail template.
example: {{ hello () }}.
How can I do ?

Hi kartoon3d

Have you tried this: Registration - October CMS - 2.x

You can extend Twig by registering cutom markup tags for filters and functions.

1 Like

thanks, I know. But I wanted to insert the function inside the mail template, in the Mail plugin

Take a look at Twig macro’s for defining functions within Twig: macro - Documentation - Twig - The flexible, fast, and secure PHP template engine