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 (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
- Send Email in C#, VB.NET, and ASP.NET
- Send Html Email with Attachment in C# and VB.NET
- Send Bulk (Mass) Email in C# and VB.NET
- Receive and Read Email in C# and VB.NET
- Reply to Email in C# and VB.NET
- Email Address Validation in C# and VB.NET
- SMTP Client in C# and VB.NET
- POP3 Client in C# and VB.NET
- IMAP Client in C# and VB.NET
- Convert Emails to PDF in C# and VB.NET
- Send a Word file as an Email body in C# and VB.NET
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