Class MailgunClient

MailgunClient class

Represents the Mailgun client

public class MailgunClient : IDeliveryServiceClient

Constructors

NameDescription
MailgunClient(string, string, MailgunRegion)Initializes a new instance of the MailgunClient class

Properties

NameDescription
EndPoint { get; set; }Gets or sets MailgunClient endpoint. If not specified, the default is “https://api.mailgun.net”.

Methods

NameDescription
virtual Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Send(MailMessage, List<string>, CancellationToken?)Sends email synchronously
SendAsync(MailMessage, List<string>, CancellationToken?)Sends email asynchronously

See Also