Class SendGridClient

SendGridClient class

Represents the SendGrid client

public class SendGridClient : IDeliveryServiceClient

Constructors

NameDescription
SendGridClient(string, bool, SendGridRegion)Initializes a new instance of the SendGridClient class

Properties

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

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