There is a newer version of this package available.
See the version list below for details.
Install-Package MailMergeLib -Version
dotnet add package MailMergeLib --version
<PackageReference Include="MailMergeLib" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MailMergeLib --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MailMergeLib,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MailMergeLib as a Cake Addin
#addin nuget:?package=MailMergeLib&version=

// Install MailMergeLib as a Cake Tool
#tool nuget:?package=MailMergeLib&version=
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.7.1 15,173 1/5/2021 14,758 11/15/2019
5.6.1 1,683 12/29/2018
5.6.0 827 12/28/2018
5.5.0 6,486 6/15/2018
5.4.1 1,082 3/10/2018
5.4.0 661 2/17/2018
5.3.0 2,224 8/18/2017 6,423 4/5/2017
5.2.0 926 11/12/2016 964 10/9/2016

First Nuget Release.