This sample which uses Syncfusion DocIO library's mailmerge functionality, helps to achieve your requirement https://github.com/SyncfusionExamples/Mail-Merge-Examples/tree/master/Generate-order-details-of-customer.