Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » Email template cannot be found in CL task

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

Page: 1
Go to End
Author Topic: 271 Views
  • senorgeno
    Community Member
    10 Posts

    Email template cannot be found in CL task Link to this post


    I have a dev task that when run eventually creates an email from a template file I have in my project templates folder under a directory called 'Emails'. When run via command line I get a template doesn't exist in theme (I want to have in project folder) and when run in browser it runs fine.

    On my local it runs fine in both command line and browser. It would seem the template isn't being picked up correctly in the template manifest when I flush=all and I don't understand why it would be available for a browser request and not from command line. Is this likely a permission issue?

    Any advice?


  • Willr
    Forum Moderator
    5497 Posts

    Re: Email template cannot be found in CL task Link to this post

    CLI does use a different cache in 3.*. So you may need to flush your cli interface as well - sake dev/tasks/SendEmail flush=1

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.