title: Mail:Send with Custom Module and Email Template
body: <p>I am currently creating a module to execute a set of codes on hookActionProductCancel. Module is running well and I would like to send out an email after execution.</p>
  
  <pre><code>$template_path = $this-&gt;local_path . 'mails/';
  
  Mail::Send((int)(Configuration::get('PS_LANG_DEFAULT')),
   'xxx', //need to change the template directory to point to custom module
   'Subject',
   array(
     '{aaa}' =&gt; $bbb,
     '{bbb}' =&gt; $ccc,
     '{ccc}' =&gt; $ddd,
     '{ddd}' =&gt; $eee
   ),
   $to,
   null, null, null);
  </code></pre>
  
  <p>I have created the templates and place the files as follow:</p>
  
  <ol>
  <li>../mails/en/xxx.html</li>
  <li>../mails/en/xxx.txt</li>
  </ol>
  
  <p>While I understand the default navigation for email templates are above, how do I use templates placed in my custom modules directory?</p>
  
  <p>I have created a directory - ../modules/custommodule/mails/ and placed both files but am not successful in pointing to it.</p>
  
  <p>Any guidance is appreciated. Thank you.</p>