forked from Imaginatio/postmark-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
34 lines (24 loc) · 888 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
README
======
This is a mavenized version of postmark-java.
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