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


Reply


267 Views

Avatar
NETim

Community Member, 24 Posts

12 June 2014 at 4:53am

Hi,

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': Cancel.ss

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?