VOOZH about

URL: https://www.nuget.org/packages/Mail.dll/

⇱ NuGet Gallery | Mail.dll 3.0.26106.1822




👁 Image
Mail.dll 3.0.26106.1822

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Mail.dll --version 3.0.26106.1822
 
 
NuGet\Install-Package Mail.dll -Version 3.0.26106.1822
 
 
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.26106.1822" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mail.dll" Version="3.0.26106.1822" />
 
Directory.Packages.props
<PackageReference Include="Mail.dll" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mail.dll --version 3.0.26106.1822
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mail.dll, 3.0.26106.1822"
 
 
#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.
#:package Mail.dll@3.0.26106.1822
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mail.dll&version=3.0.26106.1822
 
Install as a Cake Addin
#tool nuget:?package=Mail.dll&version=3.0.26106.1822
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Mail.dll

Mail.dll is a robust, commercial-grade .NET library for working with IMAP, SMTP, POP3, and MIME protocols.

It includes a powerful email and MIME parser, enabling you to send, receive, and process email messages in .NET applications.

The library supports:

  • IMAP IDLE (push email)
  • OAuth2 authentication (Gmail, Outlook)
  • S/MIME encryption and signing
  • Advanced MIME parsing

Additional features include:

  • Built-in SSL/TLS support
  • DKIM signing and verification
  • A secure S/MIME parser for encrypted and digitally signed messages
  • Parsers for iCal, vCard, and Outlook's .msg file format
  • Support for decoding winmail.dat attachments

Getting started with Mail.dll

Download emails using IMAP

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

 imap.SelectInbox();
 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;
 }
 imap.Close();
}

Download emails using POP3

using(Pop3 pop3 = new Pop3())
{
 pop3.ConnectSSL("pop3.server.com"); // 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;
 }
 pop3.Close();
} 

Send emails using SMTP

MailBuilder builder = new MailBuilder();
builder.From.Add(new MailBox("from@example.com"));
builder.To.Add(new MailBox("to@example.com"));
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("smtp.server.com"); // or ConnectSSL for SSL
 smtp.UseBestLogin("user", "password");

 smtp.SendMessage(email); 
 smtp.Close(); 
}
Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 is compatible.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net20 net20 is compatible.  net35 net35 was computed.  net40 net40 was computed.  net403 net403 was computed.  net45 net45 is compatible.  net451 net451 was computed.  net452 net452 was computed.  net46 net46 was computed.  net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 is compatible.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (34)

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

Package Downloads
OElite.Web

OElite Web API SDK for OElite Platform based application development

Soneta.CRM

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

Soneta.KadryPlace

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

Soneta.Handel

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

Soneta.Ksiega

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.26162.940-beta 6,907 6/12/2026
3.0.26106.1822 25,196 4/16/2026
3.0.26106.1555 11,236 4/16/2026
3.0.25338.1532 101,792 12/4/2025
3.0.25239.1527 106,432 8/27/2025
3.0.25220.1521 74,754 8/8/2025
3.0.25181.1641 584,213 6/30/2025
3.0.25121.1408 104,339 5/1/2025
3.0.25027.1333 98,967 1/27/2025
3.0.25006.823 315,650 1/6/2025
3.0.24303.1333 82,062 10/29/2024
3.0.24129.1605 247,211 5/8/2024
3.0.24030.1216 457,797 1/30/2024
3.0.23283.1813 95,071 10/10/2023 3.0.23283.1813 is deprecated.
3.0.23156.1704 103,219 6/5/2023 3.0.23156.1704 is deprecated.
3.0.23025.1850 304,455 1/25/2023 3.0.23025.1850 is deprecated.
3.0.23002.841 72,213 1/2/2023 3.0.23002.841 is deprecated.
Loading failed