[TASKEMAIL-4] Unable to send email due to template not found error Created: 01/Mar/21  Updated: 02/Jun/22  Resolved: 05/Mar/21

Status: Closed
Project: Task Email Notifications
Component/s: None
Affects Version/s: 5.7.2
Fix Version/s: 6.2

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Richard Gange
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.5d
Original Estimate: Not Specified
Environment:

Magnolia 6.2.6


Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   
2021-03-01 10:49:24,919 ERROR info.magnolia.module.mail.commands.MailCommand    : Could not send email:Template not found for name "/info/magnolia/task/jsonPublishTaskCreatedNotification.ftl".
The name was interpreted by this TemplateLoader: info.magnolia.freemarker.FreemarkerHelper$ConfigDelegatingTemplateLoader@b366a67.


 Comments   
Comment by Richard Gange [ 05/Mar/21 ]

Fixed with possible breaking changes. While I did leave the scripts in place for a proper deprecation I'm not sure that it matters since they cannot be loaded anyway. It's more to notify those looking at the code.

You will need to move customs scripts that may have been in the classpath to the resources side AND update the mail template to point to their new locations.

Generated at Mon Feb 12 11:01:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.