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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Emails from modeladmin, template not found


Go to End


1293 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?