Mail.dll 3.0.21008.1129

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.

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Mail.dll -Version 3.0.21008.1129
dotnet add package Mail.dll --version 3.0.21008.1129
<PackageReference Include="Mail.dll" Version="3.0.21008.1129" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mail.dll --version 3.0.21008.1129
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mail.dll, 3.0.21008.1129"
#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 Mail.dll as a Cake Addin
#addin nuget:?package=Mail.dll&version=3.0.21008.1129

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

IMAP

using(Imap imap = new Imap())
{
       imap.Connect("imap.server.com");  // or ConnectSSL for 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);

           Console.WriteLine(email.Subject);
       }
       imap.Close();
}

POP3

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

        Console.WriteLine(email.Subject);
    }
    pop3.Close();
} 

IMAP

using(Imap imap = new Imap())
{
       imap.Connect("imap.server.com");  // or ConnectSSL for 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);

           Console.WriteLine(email.Subject);
       }
       imap.Close();
}

POP3

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

        Console.WriteLine(email.Subject);
    }
    pop3.Close();
} 

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
BizDoc.Core
Workflow core
Soneta.CRM
Składnik programu Soneta. Program obsługi firmy: kadry-płace, księgowość, handel, magazyn, CRM, BI ...
SharpPulsar
SharpPulsar is Apache Pulsar Client built using Akka.net

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.21085.1559-beta 98 3/26/2021
3.0.21008.1129 6,231 1/8/2021
3.0.20308.1141 7,821 11/3/2020
3.0.20298.922 2,726 10/24/2020
3.0.20174.2011 20,733 6/22/2020
3.0.20155.1832 2,723 6/5/2020
3.0.20106.1313 11,000 4/15/2020
3.0.20073.1408 4,400 3/13/2020
3.0.20007.1248 38,352 1/7/2020
3.0.19162.1801 146,490 6/11/2019
3.0.19134.1431 75,752 5/14/2019
3.0.19029.1200 45,459 2/1/2019