GemBox.Email is a .NET component that enables you to read, write, and convert email files (MSG, EML, and MHTML), or send and receive email messages (POP, IMAP, SMTP, and EWS) from .NET applications.
With GemBox.Email you get a fast and reliable component that's easy to use and doesn't depend on Microsoft Outlook. It requires only .NET so you can deploy your applications without having to think about other licenses.
- Send mail messages using SMTP protocol.
- Receive, reply, and forward mail messages using POP or IMAP protocol.
- Create mail message with attachments and multi-format message body.
- Convert emails to MSG, EML, and MHTML format.
- Create, send, and receive emails in ASP.NET Core, Blazor, MAUI, and other .NET applications.
- Process emails on Windows, Linux, macOS, Android, and iOS operating systems.
- Modify mail message headers using advanced MIME model.
- List and modify folders using IMAP protocol.
- List and modify message flags using IMAP protocol.
- Search for mail message using IMAP protocol.
- Send, list, and download messages on the Exchange Server using EWS protocol.
- List and modify folders on the Exchange Server using the EWS protocol.
- Custom SSL certificate validation when connecting to mail server.
- Validate mail addresses.
- Sign, unsign, and validate emails.
- Create personalized mail messages based on a single template and variable data.
- Load and save calendars in iCalendar format.
- Create and add calendar events, tasks, and reminders to an email.
- OAuth 2.0 support.
You are not sure how to start working with email messages in .NET using GemBox.Email? Check the code below that shows how to create an email message from scratch and send it.
// If using Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
// Create a new email message.
MailMessage message = new MailMessage(
new MailAddress("[email protected]", "Sender"),
new MailAddress("[email protected]", "First receiver"),
new MailAddress("[email protected]", "Second receiver"));
// Add subject and body.
message.Subject = "Hello World!";
message.BodyText = "Hi 👋,\n" +
"This message was created and sent with GemBox.Email.";
// Create a new SMTP client and send the email message.
using (SmtpClient smtp = new SmtpClient("<ADDRESS> (e.g. smtp.gmail.com)"))
{
smtp.Connect();
smtp.Authenticate("<USERNAME>", "<PASSWORD>");
smtp.SendMessage(message);
}
For more GemBox.Email code examples and demos, please visit our examples page.
You can download GemBox.Email from NuGet 📦 or from Downloads 🛠️.