How to create a mail merge template with CRM data?
Reuse the email templates when you merge and email documents in writer. The merged document will be sent as an attachment along with the selected CRM template's content as the email body.

Refer to
this page for step-by-step instructions for creating a merge template