public class SendGridClient extends Object implements IDeliveryServiceClient
Represents the SendGrid client
| Constructor and Description |
|---|
SendGridClient(String apiKey)
Initializes a new instance of the
SendGridClient class |
SendGridClient(String apiKey,
boolean sandBoxMode)
Initializes a new instance of the
SendGridClient class |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
DeliveryServiceResponse |
send(MailMessage message)
Sends email synchronously
|
DeliveryServiceResponse |
send(MailMessage message,
List<String> tags,
com.aspose.email.CancellationToken token)
Sends email synchronously
|
public SendGridClient(String apiKey)
Initializes a new instance of the SendGridClient class
apiKey - public SendGridClient(String apiKey, boolean sandBoxMode)
Initializes a new instance of the SendGridClient class
apiKey - sandBoxMode - public final DeliveryServiceResponse send(MailMessage message)
Sends email synchronously
send in interface IDeliveryServiceClientmessage - The MailMessage that represents an email-message.public final DeliveryServiceResponse send(MailMessage message, List<String> tags, com.aspose.email.CancellationToken token)
Sends email synchronously
send in interface IDeliveryServiceClientmessage - The MailMessage that represents an email-message.tags - token - public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose in interface IDisposableCopyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.