Mail.dll 3.0.21231.1234

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.

Install-Package Mail.dll -Version 3.0.21231.1234
dotnet add package Mail.dll --version 3.0.21231.1234
<PackageReference Include="Mail.dll" Version="3.0.21231.1234" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mail.dll --version 3.0.21231.1234
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mail.dll, 3.0.21231.1234"
#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.21231.1234

// Install Mail.dll as a Cake Tool
#tool nuget:?package=Mail.dll&version=3.0.21231.1234
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
Soneta.CRM
Składnik programu Soneta. Program obsługi firmy: kadry-płace, księgowość, handel, magazyn, CRM, BI ...
MepApps.Controls
Mep Apps Inc. Controls Helper
MepApps.Svr.Ctl
Mep Apps Inc. Server Controls

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.21231.1234 4,381 8/19/2021
3.0.21189.1553 4,487 7/8/2021
3.0.21134.1059 10,346 5/14/2021
3.0.21085.1559-beta 193 3/26/2021
3.0.21008.1129 15,647 1/8/2021
3.0.20308.1141 11,401 11/3/2020
3.0.20298.922 6,003 10/24/2020
3.0.20174.2011 26,850 6/22/2020
3.0.20155.1832 2,939 6/5/2020
3.0.20106.1313 16,082 4/15/2020