I was wondering if it’s possible to create my own e-mail templates in my own plugin and assign them so that I can keep my own “Kirby Boilerplate” as clean as the starterkit is and the e-mail templates will be updates via one central repository.
What I’ve tried is adding this chunk of code to my plugin’s index.php file, to see if these e-mail templates are being used but this doesn’t seem to work. As soon as I move those e-mail templates to /site/templates/emails/ it works, but as said that’s not my intention.
I’ve also tried to read myself into this topic, but unfortunately that didn’t help either ![]()
// templates
'templates' => [
'emails/auth.html' => __DIR__ . '/templates/emails/auth/login.html.php',
'emails/auth.text' => __DIR__ . '/templates/emails/auth/login.php',
],