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 /

[SOLVED] Email template (Just forgot about flush)


Reply


3 Posts   2346 Views

Avatar
Tonyair

Community Member, 81 Posts

12 July 2010 at 9:35am

Edited: 12/07/2010 9:43am

Hello, I'm trying to set email template, but getting this error:

[User Warning] None of these templates can be found in theme 'newcastle': Invoice.ss

i tried to put template in all templates subfolders and tried to create folder email and put it inside, besides that i found article here http://doc.silverstripe.org/email and tried to put it inside mysite/templates/email

ContactHolder_Controller:

$email = new Email();
$email->setTemplate('Invoice');

Avatar
SSadmin

Community Member, 90 Posts

14 October 2010 at 2:23pm

Have met the same problem and after flush the cache then it works.

Avatar
BenWu

Community Member, 90 Posts

22 May 2012 at 2:23am

i have to put the email template to

themes/mytheme/templates/Email/myemailtemplate.ss

to work. Aram also confirmed this: http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/