As per the standard SageCRM functionality we could use the Mail Merge functionality with Standard Primary entities only.
Do you want to activate this functionality for Custom Entity?
We have developed a component so we could be able to use Mail Merge functionality with Custom Entity. We can Add the fields from Custom Entity in to the Mail to send a mail in proper format.