title: eCommerce with Hybris: Email Template Generation
body: <p>Hello Experts,
                   I am newbie to Hybris Ecommerce and currently i am working on generating hybris email template for B2C.I am following the below link :</p>
  
  <pre><code>http://flexblog.faratasystems.com/index.php/ecommerce-with-hybris-sending-emails/
  </code></pre>
  
  <p>Email Context Object :</p>
  
  <pre><code>public class OneMillionPurchaseEmailContext extends AbstractEmailContext
  {
      // ...
  
      @Override
      public void init(final BusinessProcessModel businessProcessModel, final EmailPageModel emailPageModel)
      {
          // ...
          put(FROM_EMAIL, emailPageModel.getFromEmail());
          put(FROM_DISPLAY_NAME, emailPageModel.getFromName());
          put(DISPLAY_NAME, "BDI Customer Service");
          put(EMAIL, getCustomerEmailResolutionService().getEmailForCustomer(getCustomer()));
          // ...
      }
  
      @Override
      protected BaseSiteModel getSite(final BusinessProcessModel businessProcessModel)
      {
          return ((StoreFrontProcessModel) businessProcessModel).getSite();
      }
  
      @Override
      protected CustomerModel getCustomer(final BusinessProcessModel businessProcessModel)
      {
          return ((StoreFrontCustomerProcessModel) businessProcessModel).getCustomer();
      }
  }
  </code></pre>
  
  <p>In the above code,Can anyone guide me from where we have to call this email context Object class?It would be appreciated if anyone can guide or provide any links or docs for email template generation configuration process.</p>