Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Emails from modeladmin, template not found




12 June 2014 at 4:53am Community Member, 24 Posts


I am using an onAfterWrite on a dataobject to send an email to the user and admins if an order is cancelled.
For some reason, it can't find any of the templates in the mytheme/templates/Email folder and all I'm getting is a blank email and the following error:
None of these templates can be found in theme 'simple':

I have also tried to use an email template that I know works and that also fails.

Any ideas? The templates are found when a called from a controller.

Is there something I'm missing or that is different when called from modeladmin?