MailMergeLib
MailMergeLib is a C# SMTP mail client library which provides comfortable mail merge capabilities for text, inline images and attachments, good throughput and fault tolerance for sending mail messages. 1. Mail message generation: * Email templates can be fully individualized in terms of recipients, subject, HTML and/or plain text, attachments and even headers. Placeholders are inserted as variable names from data source between curly braces like so: {MailboxAddress.Name} or with formatting arguments known form string.format like {Date:yyyy-MM-dd}. * HTML text may contain images from local hard disk, which will be automatically inserted as inline attachments. * For HTML text MailMergeLib can generate a plain text representation. * The data source for email merge messages to a number of recipients and be any 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 instances or anonymous types. For class instances it's even allowed to use the name of parameter less methods. 2. Sending email messages: * Practically unlimited number of parallel tasks to send out individualized emails to a big number of recipients. * SmptClients for each task can get their own preconfigured settings, so that e.g. several mail servers can be used for one send job. * Progress of processing emails can easily be observed with a number of events. * SMTP failures can automatically be resolved supplying a backup configuration. This fault-tolerance is essential for unattended production systems. * Configuration settings for messages and SMTP can be stored to and loaded from an XML file.
Install
dotnet add package MailMergeLib --version 5.0.1.1
Install-Package MailMergeLib -Version 5.0.1.1
<PackageReference Include="MailMergeLib" Version="5.0.1.1" />
Frameworks
Dependencies
Adoption guide
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.
Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.