Mail.dll 3.0.20073.1408

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 version of this package available.
See the version list below for details.
Install-Package Mail.dll -Version 3.0.20073.1408
dotnet add package Mail.dll --version 3.0.20073.1408
<PackageReference Include="Mail.dll" Version="3.0.20073.1408" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mail.dll --version 3.0.20073.1408
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 toolkit
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.20308.1141 1,452 11/3/2020
3.0.20298.922 751 10/24/2020
3.0.20174.2011 12,552 6/22/2020
3.0.20155.1832 2,491 6/5/2020
3.0.20106.1313 6,247 4/15/2020
3.0.20073.1408 4,200 3/13/2020
3.0.20007.1248 29,571 1/7/2020
3.0.19162.1801 120,008 6/11/2019
3.0.19134.1431 74,724 5/14/2019
3.0.19029.1200 38,237 2/1/2019
Show less