Skip to content

Docs → Sending emails — Missing info? #2478

@stairjoke

Description

@stairjoke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions