# Mail Merge

> Mail merge with the MailMerge class: templates from MS Word or the Document Editor, merge fields, merge blocks and JSON, object or DataTable data sources.

- **Product:** TX Text Control .NET Server
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET Server > Getting Started > Mail Merge
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/llms-full.txt

---

## On This Page

- [How Mail Merge Works](https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/#how-mail-merge-works)
- [Pages in This Section](https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/#pages-in-this-section)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/#next-steps)

---

## In This Section

- [Merge Blocks](https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/blocks/llms.txt): Repeat table rows and sections such as invoice line items with merge blocks: map block names to arrays, create blocks in code, nest, sort and filter them.
- [Merge Fields](https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/fields/llms.txt): Map merge field names to JSON and object data with dot notation, insert fields in MS Word, the Document Editor or C#, and format merged numbers and dates.
- [Simple Mail Merge](https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/simple/llms.txt): Create your first mail merge in a .NET console app: merge JSON data and C# objects into a DOCX template, save PDF and DOCX, and run it on Linux or WSL.

---

## Nearby

- **Previous:** [JavaScript](https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/document-viewer/javascript/llms.txt)
- **Next:** [Simple Mail Merge](https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/mail-merge/simple/llms.txt)
