Mail.dll 3.0.23025.1850

.NET 5.0 .NET Standard 2.0 .NET Framework 2.0
dotnet add package Mail.dll --version 3.0.23025.1850
NuGet\Install-Package Mail.dll -Version 3.0.23025.1850
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mail.dll" Version="3.0.23025.1850" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mail.dll --version 3.0.23025.1850
#r "nuget: Mail.dll, 3.0.23025.1850"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Mail.dll as a Cake Addin
#addin nuget:?package=Mail.dll&version=3.0.23025.1850

// Install Mail.dll as a Cake Tool
#tool nuget:?package=Mail.dll&version=3.0.23025.1850


Mail.dll is a .NET IMAP component, POP3 component and SMTP component library.

Includes an email and MIME parser. Allows sending, receiving and processing email messages in .NET applications. Includes SSL and TLS support along with OAuth and DKIM capabilities. Includes secure MIME (S/MIME) parser for processing encrypted and signed emails.

Contains iCal, vCard and Outlook's msg files parsers. Decodes winmail.dat attachments.

Getting started with Mail.dll

Download emails using IMAP

using(Imap imap = new Imap())
    imap.ConnectSSL("");  // or Connect for non SSL/TLS
    imap.UseBestLogin("user", "password");

    List<long> uids = imap.Search(Flag.Unseen);
    foreach (long uid in uids)
        var eml = imap.GetMessageByUID(uid);

        IMail email = new MailBuilder().CreateFromEml(eml);

        string subject = email.Subject;

Download emails using POP3

using(Pop3 pop3 = new Pop3())
    pop3.ConnectSSL("");  // or Connect for non SSL/TLS   
    pop3.UseBestLogin("user", "password");

    List<string> uids = pop3.GetAll();
    foreach (string uid in uids)
        var eml = pop3.GetMessageByUID(uid);
        IMail email = new MailBuilder().CreateFromEml(eml);

        string subject = email.Subject;

Send emails using SMTP

MailBuilder builder = new MailBuilder();
builder.From.Add(new MailBox(""));
builder.To.Add(new MailBox(""));
builder.Subject = "Subject";
builder.Html = @"Html with an image: <img src=""cid:lena"" />";

var visual = builder.AddVisual(@"c:\lena.jpeg");
visual.ContentId = "lena";

var attachment = builder.AddAttachment(@"c:\tmp.doc");
attachment.SetFileName("document.doc", guessContentType: true);

IMail email = builder.Create();

using(Smtp smtp = new Smtp())
    smtp.Connect("");  // or ConnectSSL for SSL
    smtp.UseBestLogin("user", "password");

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net20 net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Mail.dll:

Package Downloads

OElite Web API SDK for OElite Platform based application development


Składnik programu Soneta. Program obsługi firmy: kadry-płace, księgowość, handel, magazyn, CRM, BI ...


Mep Apps Inc. Server Controls


Mep Apps Inc. Cloud Internals

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.23025.1850 4,332 1/25/2023
3.0.23002.841 943 1/2/2023
3.0.22293.1001 40,013 10/20/2022
3.0.22269.1117 2,146 9/26/2022
3.0.22234.1038 33,065 8/22/2022
3.0.22105.1207 20,727 4/15/2022
3.0.22035.1741 23,826 2/4/2022
3.0.21294.1630 154,701 10/21/2021
3.0.21267.1221 10,327 9/24/2021
3.0.21231.1234 34,896 8/19/2021
3.0.21189.1553 10,955 7/8/2021
3.0.21134.1059 30,871 5/14/2021