Click or drag to resize
MimeKit

Getting Started

Adding MailKit to your project via NuGet

In Visual Studio's Package Manager Console, enter the following command:

Install-Package MailKit

Building MailKit from Source

First, you'll need to clone MailKit from the GitHub repository:

git clone https://github.com/jstedfast/MailKit.git

Then, since MailKit makes use of git submodules, you will need to initialize and update the submodules using the following command from within the MailKit directory:

git submodule update --init --recursive

In the top-level MailKit source directory, there are several solution files:

  • MailKit.sln includes projects for .NET 4.0, .NET 4.5, Xamarin.Android, Xamarin.iOS, and the unit tests.

  • MailKit.Mobile.sln just includes the Xamarin.Android and Xamarin.iOS projects.

  • MailKit.Net45.sln includes the .NET 4.5 project as well as the unit tests.

  • MailKit.Net40.sln just includes the .NET 4.0 project.

If you don't have the Xamarin products, you'll probably want to open the MailKit.Net45.sln instead of MailKit.sln.

Once you've opened the appropriate MailKit solution file in either Xamarin Studio or Visual Studio (either will work), you can choose the Debug or Release build configuration and then build.

See Also