When using a FreeMarker template using a name, a variant and the property ogham.email.template.prefix, it seems that the template resolution doesn't work.
Template file in classpath: /email/delivery.txt.ftl
Sending email using: new Email().content(new MultiTemplateContent("delivery"))
Configuration: ogham.email.template.prefix=/email/
Using Spring Boot
=> Template not found
It seems that ClassPathResolverAdapter is using a particular class for resource resolution instead of ClassLoader so the path is relative the package of the class
When using a FreeMarker template using a name, a variant and the property ogham.email.template.prefix, it seems that the template resolution doesn't work.
Template file in classpath: /email/delivery.txt.ftl Sending email using: new Email().content(new MultiTemplateContent("delivery")) Configuration: ogham.email.template.prefix=/email/ Using Spring Boot
=> Template not found
It seems that ClassPathResolverAdapter is using a particular class for resource resolution instead of ClassLoader so the path is relative the package of the class