Skip to content

ruisalgado/postmark-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages