Mail.dll 3.0.23156.1704

There is a newer version of this package available.
See the version list below for details.
dotnet add package Mail.dll --version 3.0.23156.1704
NuGet\Install-Package Mail.dll -Version 3.0.23156.1704
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.23156.1704" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mail.dll --version 3.0.23156.1704
#r "nuget: Mail.dll, 3.0.23156.1704"
#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.23156.1704

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

Mail.dll

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("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 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 was computed.  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. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
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

OElite Web API SDK for OElite Platform based application development

Soneta.CRM The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

MepApps.Svr.Ctl

Mep Apps Inc. Server Controls

MepApps.Svr.Internal

Mep Apps Inc. Cloud Internals

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.24030.1216 13,283 1/30/2024
3.0.23283.1813 11,260 10/10/2023
3.0.23156.1704 26,414 6/5/2023
3.0.23025.1850 159,636 1/25/2023
3.0.23002.841 1,975 1/2/2023
3.0.22293.1001 83,611 10/20/2022
3.0.22269.1117 5,122 9/26/2022
3.0.22234.1038 40,733 8/22/2022
3.0.22105.1207 31,581 4/15/2022
3.0.22035.1741 34,042 2/4/2022