-
Notifications
You must be signed in to change notification settings - Fork 0
Postmark API wrapper for Java
ruisalgado/postmark-java
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
README
======
This library allows you to leverage the Postmark REST API to send emails.
Example usage:
List<NameValuePair> headers = new ArrayList<NameValuePair>();
headers.add(new NameValuePair("HEADER", "test"));
PostmarkMessage message = new PostmarkMessage("TO_ADDRESS",
"FROM_ADDRESS",
"REPLY_TO_ADDRESS",
null,
"SUBJECT",
"CONTENT",
false,
null,
headers);
PostmarkClient client = new PostmarkClient("POSTMARK_API_TEST");
try {
client.sendMessage(message);
} catch (PostmarkException pe) {
System.out.println("An error has occured : " + pe.getMessage());
}
Dependencies:
All dependencies are included in the lib folder
About
Postmark API wrapper for Java
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published