title: How to Send custom email for customer registration in magento?
body: <p>I have created a custom template for <code>customer registration</code>, but I don't know how to call it when I register a customer.</p>
  
  <p>I have created a custom email template like this:</p>
  
  <pre><code>&lt;template&gt;
      &lt;email&gt;
          &lt;vendor_suggestions_email_template translate="label"&gt;
              &lt;label&gt;Vendor Suggestions&lt;/label&gt;
              &lt;file&gt;vendor_suggestions.html&lt;/file&gt;
              &lt;type&gt;html&lt;/type&gt;
          &lt;/vendor_suggestions_email_template &gt;
      &lt;/email&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>My custom email template is loading in admin panel, I have checked it. Now I want to call this email for <code>customer registration</code>. So I have to overwrite my customer model from <code>mage/customer/model/customer.php</code> file to my local customer module.</p>
  
  <p>Here is the customer model code for sending email for <code>customer registration</code></p>
  
  <pre><code>const XML_PATH_REGISTER_EMAIL_TEMPLATE = 'customer/create_account/email_template';
  
  public function sendNewAccountEmail($type = 'registered', $backUrl = '', $storeId = '0')
  {
      $types = array(
          'registered'   =&gt; self::XML_PATH_REGISTER_EMAIL_TEMPLATE, // welcome email, when confirmation is disabled
          'confirmed'    =&gt; self::XML_PATH_CONFIRMED_EMAIL_TEMPLATE, // welcome email, when confirmation is enabled
          'confirmation' =&gt; self::XML_PATH_CONFIRM_EMAIL_TEMPLATE, // email with confirmation link
      );
      if (!isset($types[$type])) {
          Mage::throwException(Mage::helper('customer')-&gt;__('Wrong transactional account email type'));
      }
  
      if (!$storeId) {
          $storeId = $this-&gt;_getWebsiteStoreId($this-&gt;getSendemailStoreId());
      }
  
      $this-&gt;_sendEmailTemplate($types[$type], self::XML_PATH_REGISTER_EMAIL_IDENTITY,
          array('customer' =&gt; $this, 'back_url' =&gt; $backUrl), $storeId);
  
      return $this;
  }
  </code></pre>
  
  <p>Now, I don't know what should I do to send my customer email template for <code>customer registration</code>. I really don't understand how the above code works for sending email in customer registration and how to trigger my custom email template.</p>
  
  <p>Can anyone help me????</p>