-
-
Notifications
You must be signed in to change notification settings - Fork 279
Description
Issue with Reference
I’m new to sending emails with Kirby. Otherwise, I’d attempt to edit the docs myself, but I’m not confident I can do that correctly at the moment. The docs page Sending emails does not mention templates have to be lower case for email template names. However, it seems these are case-sensitive and convert the template name to lower case?
Current Behaviour
I spent some time debugging a form which kept telling me the template file could not be found. The file names were formBlock.html.php
and formBlock.text.php
.
Quote from the error stack trace:
The email template "formBlock" cannot be found
After some tinkering, I found that the exception went away if the file was renamed to form-block.html.php
or form-block.text.php
and referenced them as form-block
.
Expected
Template names are case-insensitive, or both file name and string get converted to lower case, not just one of them.