Skip to content

EliSchleifer/Mandrill-dotnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandrill Dot Net

NuGet

Visual Studio users can install this directly into their .NET projects by executing the following command in the Package Manager Console

PM> Install-Package Mandrill

Description

Mandrill Dot Net is a library that wraps the Mandrill mail API to easily get started in sending mail. It contains methods that accept just the minimal amount of strongly typed parameters required to start sending out emails. All API calls have their Async counterparts.

Usage

Go to the downloads page and download the latest version or utilize the NuGet package. Unzip the file files and reference the following file in your .net project:

Mandrill.dll

Sample Source:

Synchronous:

MandrillApi api = new MandrillApi("xxxxx-xxxx-xxxx-xxxx");
UserInfo info = api.UserInfo();
Console.WriteLine(info.reputation);

Asychronous:

MandrillApi api = new MandrillApi("xxxxx-xxxx-xxxx-xxxx");
var task= api.UserInfoAsyc();

task.ContinueWith(data =>
{
    var userInfo = data.Result;
    Console.WriteLine(userInfo.reputation);
});

Api methods Covered

  1. User Calls
  2. Info
  3. Ping
  4. Messages Calls
  5. Send
  6. Send-Template

Necessary prerequisites

.NET 4

About

.NET wrapper for Mandrill

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 88.7%
  • Ruby 11.3%