MailMergeLib is a mail message client library which provides comfortable mail merge capabilities for text, inline images and attachments, as well as good throughput and fault tolerance for sending mail messages.
$ dotnet add package MailMergeLib
MailMergeLib version 5 is an SMTP mail client library which provides comfortable mail merge capabilities. MailMergeLib is written in C# and comes with the following features:
{MailboxAddress.Name} or with formatting arguments like {Date:yyyy-MM-dd}.MailMergeLib can generate a plain text representation.IEnumerable object as well as DataTables. The data source for single emails can be any of the following types: Dictionary<string,object>, ExpandoObject, DataRow, any class instance or anonymous types. For class instances it's even allowed to use the name of parameter less methods in placeholders.string.Format by using SmartFormat.NET. SmartFormat is a fast and lean string parser and formatter, bringing a lot of additional options like conditional output depending on input data.MailMergeLib for sending unsolicited bulk email.