title: Use an Email Template from a CakePHP Plugin
body: <p>I have a CakePHP Shell Script that's sending an email. This script is contained in a CakePHP plugin (foo).</p>
  
  <p>Setting the Email Template as</p>
  
  <pre><code>$this-&gt;Email-&gt;template = "foo/email_template_name";
  </code></pre>
  
  <p>Does not work, the email sends successfully, however the email just says</p>
  
  <pre><code>Not Found: /path_to_app/app/views/elements/email/html/foo/email_template_name.ctp
  </code></pre>
  
  <p>I have verified that the template is named correctly and does exist.</p>
  
  <p>Minor Notes:</p>
  
  <pre><code>$this-&gt;Email-&gt;sendAs = "both";
  </code></pre>
  
  <p>If the template is moved to <code>/path_to_app/app/views/elements/email/html/foo/email_template_name.ctp</code>
  it does work correctly. However I was hoping to ship this as much as possible as a self contained email including the templates in the plugin itself.</p>