public class MailgunClient extends Object implements IDeliveryServiceClient
Represents the Mailgun client
| Constructor and Description |
|---|
MailgunClient(String domainName,
String apiKey)
Initializes a new instance of the
MailgunClient class |
MailgunClient(String domainName,
String apiKey,
int mailGunRegion)
Initializes a new instance of the
MailgunClient 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 MailgunClient(String domainName, String apiKey)
Initializes a new instance of the MailgunClient class
domainName - apiKey - public MailgunClient(String domainName, String apiKey, int mailGunRegion)
Initializes a new instance of the MailgunClient class
domainName - apiKey - mailGunRegion - 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.