Mail.dll
3.0.25239.1527
dotnet add package Mail.dll --version 3.0.25239.1527
NuGet\Install-Package Mail.dll -Version 3.0.25239.1527
<PackageReference Include="Mail.dll" Version="3.0.25239.1527" />
<PackageVersion Include="Mail.dll" Version="3.0.25239.1527" />
<PackageReference Include="Mail.dll" />
paket add Mail.dll --version 3.0.25239.1527
#r "nuget: Mail.dll, 3.0.25239.1527"
#:package Mail.dll@3.0.25239.1527
#addin nuget:?package=Mail.dll&version=3.0.25239.1527
#tool nuget:?package=Mail.dll&version=3.0.25239.1527
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 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net20 is compatible. net35 was computed. net40 was computed. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
.NETStandard 2.0
- System.Security.Cryptography.Algorithms (>= 4.3.1)
- System.Security.Cryptography.Pkcs (>= 9.0.7)
- System.Security.Cryptography.X509Certificates (>= 4.3.2)
- System.Security.Cryptography.Xml (>= 9.0.7)
- System.Text.Encoding.CodePages (>= 9.0.7)
-
net5.0
- System.Security.Cryptography.Algorithms (>= 4.3.1)
- System.Security.Cryptography.Pkcs (>= 8.0.1)
- System.Security.Cryptography.X509Certificates (>= 4.3.2)
- System.Security.Cryptography.Xml (>= 8.0.2)
- System.Text.Encoding.CodePages (>= 6.0.0)
-
net6.0
- System.Security.Cryptography.Algorithms (>= 4.3.1)
- System.Security.Cryptography.Pkcs (>= 8.0.1)
- System.Security.Cryptography.X509Certificates (>= 4.3.2)
- System.Security.Cryptography.Xml (>= 8.0.2)
- System.Text.Encoding.CodePages (>= 8.0.0)
-
net8.0
- System.Security.Cryptography.Algorithms (>= 4.3.1)
- System.Security.Cryptography.Pkcs (>= 9.0.7)
- System.Security.Cryptography.X509Certificates (>= 4.3.2)
- System.Security.Cryptography.Xml (>= 9.0.7)
- System.Text.Encoding.CodePages (>= 9.0.7)
-
net9.0
- System.Security.Cryptography.Algorithms (>= 4.3.1)
- System.Security.Cryptography.Pkcs (>= 9.0.7)
- System.Security.Cryptography.X509Certificates (>= 4.3.2)
- System.Security.Cryptography.Xml (>= 9.0.7)
- System.Text.Encoding.CodePages (>= 9.0.7)
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.25239.1527 | 31,303 | 8/27/2025 | |
| 3.0.25220.1521 | 18,412 | 8/8/2025 | |
| 3.0.25181.1641 | 197,941 | 6/30/2025 | |
| 3.0.25121.1408 | 33,986 | 5/1/2025 | |
| 3.0.25027.1333 | 37,369 | 1/27/2025 | |
| 3.0.25006.823 | 146,854 | 1/6/2025 | |
| 3.0.24303.1333 | 23,967 | 10/29/2024 | |
| 3.0.24129.1605 | 141,061 | 5/8/2024 | |
| 3.0.24030.1216 | 344,662 | 1/30/2024 | |
| 3.0.23283.1813 | 34,965 | 10/10/2023 | |
| 3.0.23156.1704 | 45,485 | 6/5/2023 | |
| 3.0.23025.1850 | 244,315 | 1/25/2023 | |
| 3.0.23002.841 | 14,288 | 1/2/2023 |