C# Class Typesafe.Mailgun.MailgunClient

Provides access to the Mailgun REST API.
Inheritance: IMailgunAccountInfo, IMailgunClient
Datei anzeigen Open project: typesafe/mnailgun Class Usage Examples

Public Methods

Method Description
CreateRoute ( int priority, string description, Typesafe.Mailgun.Routing.RouteFilter expression ) : Typesafe.Mailgun.Routing.Route
DeleteRoute ( string routeId ) : Typesafe.Mailgun.CommandResult
GetRoutes ( int skip, int take, int &count ) : IEnumerable
GetStats ( int skip, int take, MailgunEventTypes eventTypes, int &count ) : IEnumerable
MailgunClient ( string domain, string apiKey, int version ) : System

Initializes a new client for the specified domain and api key.

SendBatchMail ( MailMessage mailMessage ) : Typesafe.Mailgun.SendMailCommandResult
SendBatchMail ( MailMessage mailMessage, object>.IDictionary recipientVariables ) : Typesafe.Mailgun.SendMailCommandResult
SendMail ( MailMessage mailMessage ) : Typesafe.Mailgun.SendMailCommandResult

Method Details

CreateRoute() public method

public CreateRoute ( int priority, string description, Typesafe.Mailgun.Routing.RouteFilter expression ) : Typesafe.Mailgun.Routing.Route
priority int
description string
expression Typesafe.Mailgun.Routing.RouteFilter
return Typesafe.Mailgun.Routing.Route

DeleteRoute() public method

public DeleteRoute ( string routeId ) : Typesafe.Mailgun.CommandResult
routeId string
return Typesafe.Mailgun.CommandResult

GetRoutes() public method

public GetRoutes ( int skip, int take, int &count ) : IEnumerable
skip int
take int
count int
return IEnumerable

GetStats() public method

public GetStats ( int skip, int take, MailgunEventTypes eventTypes, int &count ) : IEnumerable
skip int
take int
eventTypes MailgunEventTypes
count int
return IEnumerable

MailgunClient() public method

Initializes a new client for the specified domain and api key.
public MailgunClient ( string domain, string apiKey, int version ) : System
domain string
apiKey string
version int
return System

SendBatchMail() public method

public SendBatchMail ( MailMessage mailMessage ) : Typesafe.Mailgun.SendMailCommandResult
mailMessage System.Net.Mail.MailMessage
return Typesafe.Mailgun.SendMailCommandResult

SendBatchMail() public method

public SendBatchMail ( MailMessage mailMessage, object>.IDictionary recipientVariables ) : Typesafe.Mailgun.SendMailCommandResult
mailMessage System.Net.Mail.MailMessage
recipientVariables object>.IDictionary
return Typesafe.Mailgun.SendMailCommandResult

SendMail() public method

public SendMail ( MailMessage mailMessage ) : Typesafe.Mailgun.SendMailCommandResult
mailMessage System.Net.Mail.MailMessage
return Typesafe.Mailgun.SendMailCommandResult