IMAP4 Client Protocol Library for C# and .NET
by darren horrocksSystem.Net.Imap4 is an IMAP4 client library for .NET written in C# with support for parsing multipart, attachments, html and plain parts.
It includes:
- Plain and Encrypted (SSL/TLS) Connections
- Fetching server capabilities
- Authentication (Plain only)
- Fetching folder lists/Folder selection
- Fetching Email Counts
- Fetching RAW email
- Fetching parsed email
- Deleting emails
- Authentication (Plain only)
- Waiting for emails (push emails)
- Setting/Getting flags
- Multipart emails
- HTML emails
- Attachments
Released under the BSD-3-Clause licence, and is also available for use as an easy to use nuget package.
Connect to GMail
static IMapClient ConnectToClient()
{
}
Get email
static EmailMessage GetEmail(int id, IMapClient client)
{
}
Delete email
static EmailMessage DeleteEmail(int id, IMapClient client)
{
}
Get Attachment from email
static void GetAttachments(EmailMessage msg)
{
}