Questions tagged [gembox-email]

GemBox.Email is a .NET component that enables developers to send and receive emails using POP, IMAP, SMTP and EWS clients from their .NET applications.

GemBox.Email () is a .NET component that enables developers to read and write MSG, EML, MHTML, MBOX, and receive and send emails using POP, IMAP, SMTP, and EWS from their .NET applications.

GemBox.Email Free is free of charge while GemBox.Email Professional is a commercial version licensed per developer. Server deployment is royalty-free.


Support

Read & Write Protocols Utilities
EML SMTP Mail Merge
MSG POP Address Validation
MHTML IMAP Bulk Messages
MBOX EWS PDF Export
ICAL Word Import

Hello World

C#

// Create a POP client.
using (PopClient pop = new PopClient("<HOST>"))
{
    // Connect and login to email server.
    pop.Connect();
    pop.Authenticate("<USERNAME>", "<PASSWORD>");

    // Download the first email message.
    MailMessage message = pop.GetMessage(1);

    // Read message sender and subject.
    Console.WriteLine($"From: {message.From}");
    Console.WriteLine($"Subject: {message.Subject}");
}

VB.NET

' Create a POP client.
Using pop As New PopClient("<HOST>")

    ' Connect and login to email server.
    pop.Connect()
    pop.Authenticate("<USERNAME>", "<PASSWORD>")

    ' Download the first email message.
    Dim message As MailMessage = pop.GetMessage(1)

    ' Read message sender and subject.
    Console.WriteLine($"From: {message.From}")
    Console.WriteLine($"Subject: {message.Subject}")

End Using

Top Features


System Requirement

  • .NET Framework 3.5 - 4.8
  • .NET Standard 2.0 (.NET 5) or higher

Installation

You can download GemBox.Email from BugFixes

Or from NuGet


Resources


Related Tags

3 questions
5
votes
1 answer

Convert MSG email to PDF file in C#

I'm using GemBox.Email and GemBox.Document to convert emails to PDF. This is my code: static void Main() { MailMessage message = MailMessage.Load("input.eml"); DocumentModel document = new DocumentModel(); if…
NixonUposseen
  • 53
  • 3
  • 12
2
votes
2 answers

Gembox.Email.Imap get the count of unread mails

i have been searching all over the place for a way to get the count of unread emails in my Gmail account using GemBox.Email.Imap. So far i am able to connect, get the count of all mails but i need just the unread, is there anyone that have some…
AcidRod75
  • 187
  • 9
1
vote
1 answer

Retrieve unread emails and leave them as unread in inbox

I'm using GemBox.Email and I'm retrieving unread emails from my inbox like this: using (var imap = new ImapClient("imap.gmail.com")) { imap.Connect(); imap.Authenticate("username", "password"); imap.SelectInbox(); …
hertzogth
  • 236
  • 1
  • 2
  • 19