public class PostmarkClient extends Object
| Constructor and Description |
|---|
PostmarkClient(String serverToken)
Initializes a new instance of the PostmarkClient class.
|
| Modifier and Type | Method and Description |
|---|---|
PostmarkResponse |
sendMessage(PostmarkMessage message)
Sends a message through the Postmark API.
|
PostmarkResponse |
sendMessage(String from,
String to,
String replyTo,
String cc,
String subject,
String body,
boolean isHTML,
String tag)
Sends a message through the Postmark API.
|
PostmarkResponse |
sendMessage(String from,
String to,
String replyTo,
String cc,
String subject,
String body,
boolean isHTML,
String tag,
List<NameValuePair> headers)
Sends a message through the Postmark API.
|
PostmarkResponse |
sendMessage(String from,
String to,
String replyTo,
String cc,
String bcc,
String subject,
String body,
boolean isHTML,
String tag,
List<NameValuePair> headers)
Sends a message through the Postmark API.
|
public PostmarkClient(String serverToken)
serverToken - the postmark server tokenpublic PostmarkResponse sendMessage(String from, String to, String replyTo, String cc, String subject, String body, boolean isHTML, String tag) throws PostmarkException
from - An email address for a senderto - An email address for a recipientreplyTo - An email address for the reply-tocc - An email address for CCsubject - The message subject linebody - The message bodyisHTML - Is the body text HTMLtag - A tag to identify the message in postmarkPostmarkResponse with details about the transactionPostmarkExceptionpublic PostmarkResponse sendMessage(String from, String to, String replyTo, String cc, String subject, String body, boolean isHTML, String tag, List<NameValuePair> headers) throws PostmarkException
from - An email address for a senderto - An email address for a recipientreplyTo - An email address for the reply-tocc - An email address for CCsubject - The message subject linebody - The message bodyisHTML - Is the body text HTMLtag - A tag to identify the message in postmarkheaders - A collection of additional mail headers to send with the messagePostmarkResponse with details about the transactionPostmarkExceptionpublic PostmarkResponse sendMessage(String from, String to, String replyTo, String cc, String bcc, String subject, String body, boolean isHTML, String tag, List<NameValuePair> headers) throws PostmarkException
from - An email address for a senderto - An email address for a recipientreplyTo - An email address for the reply-tocc - An email address for CCbcc - An email address for BCCsubject - The message subject linebody - The message bodyisHTML - Is the body text HTMLtag - A tag to identify the message in postmarkheaders - A collection of additional mail headers to send with the messagePostmarkResponse with details about the transactionPostmarkExceptionpublic PostmarkResponse sendMessage(PostmarkMessage message) throws PostmarkException
message - A prepared message instance.PostmarkExceptionCopyright © 2015. All Rights Reserved.