Skip to content

waldher/postmark-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Java API library for Postmark

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%