title: Custom email sending in magento custom module
body: <p>I am working on a module that will send an email after 7 days of order completion. I'm stuck on sending emails. I can see the email template in transactional emails drop down in admin. But the email is not being sent. </p>
  
  <p>Here is my confix.xml part for including email template. </p>
  
  <pre><code>&lt;template&gt;
          &lt;email&gt;
              &lt;recurring_order_email_template translate="label"&gt;
                  &lt;label&gt;Recurring order email&lt;/label&gt;
                  &lt;file&gt;coeus_recurring_order_email.html&lt;/file&gt;
                  &lt;type&gt;html&lt;/type&gt;
              &lt;/recurring_order_email_template&gt;
          &lt;/email&gt;
      &lt;/template&gt;
  </code></pre>
  
  <p>and this is how I am sending email in controller action </p>
  
  <pre><code> $emailTemplate = Mage::getModel('core/email_template')
              -&gt;loadDefault('coeus_recurring_order_email');
  
      $emailTemplateVariables = array();
      $emailTemplateVariables['var1'] = 'var1 value';
      $emailTemplateVariables['var2'] = 'var 2 value';
      $emailTemplateVariables['var3'] = 'var 3 value';
  
      $emailTemplate-&gt;getProcessedTemplate($emailTemplateVariables);
  
     $emailTemplate-&gt;setSenderName('sender name');
      $emailTemplate-&gt;setSenderEmail('sender@test.com');
      try {
          $emailTemplate-&gt;send('myemail@gmail.com', 'bla bla',$emailTemplateVariables);
      } catch (Exception $e) {
          echo $e-&gt;getMessage();
      }  
  </code></pre>
  
  <p>I don't know why its not working. </p>