TX Text Control's MailMerge class can process IncludeText fields that essentially render sub-templates into a main template.
The loaded main template contains a merge field and an IncludeText field that references a sub-template hosted on the server. The sub-template contains also a merge field that is merged based on the same data source. All IncludeText fields are evaluated first, before included merge fields are populated.
Click the button Merge using MailMerge to start the server-side mail merge process.
This demo uses the MVC version of TXTextControl.Web included in TX Text Control .NET Server for ASP.NET. The functionality is compatible across all supported platforms.
Version X19 SP1
Sample Source Code
No code required.
© 2021 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We ♥ documents.