title: CRM 2011: How to programmatic create document using mail merge template?
body: <p>I created some mail merge template. It should create some email and sent to some contact. Template is using 'contact' entity.</p>
  
  <p>How to create document from code using that template?
  And, for example, send mail to specified contact.</p>