SendGridClient
Contents
[
Hide
]Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.email.IDeliveryServiceClient
public class SendGridClient implements IDeliveryServiceClient
Represents the SendGrid client
Constructors
| Constructor | 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 |
Methods
| Method | Description |
|---|---|
| dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| send(MailMessage message) | Sends email synchronously |
| send(MailMessage message, List | Sends email synchronously |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
SendGridClient(String apiKey)
public SendGridClient(String apiKey)
Initializes a new instance of the SendGridClient class
Parameters:
| Parameter | Type | Description |
|---|---|---|
| apiKey | java.lang.String |
SendGridClient(String apiKey, boolean sandBoxMode)
public SendGridClient(String apiKey, boolean sandBoxMode)
Initializes a new instance of the SendGridClient class
Parameters:
| Parameter | Type | Description |
|---|---|---|
| apiKey | java.lang.String | |
| sandBoxMode | boolean |
dispose()
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
send(MailMessage message)
public final DeliveryServiceResponse send(MailMessage message)
Sends email synchronously
Parameters:
| Parameter | Type | Description |
|---|---|---|
| message | MailMessage | The MailMessage that represents an email-message. |
Returns: DeliveryServiceResponse -
send(MailMessage message, List tags, CancellationToken token)
public final DeliveryServiceResponse send(MailMessage message, List<String> tags, CancellationToken token)
Sends email synchronously
Parameters:
| Parameter | Type | Description |
|---|---|---|
| message | MailMessage | The MailMessage that represents an email-message. |
| tags | java.util.List<java.lang.String> | |
| token | com.aspose.email.CancellationToken |
Returns: DeliveryServiceResponse -
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |