by Hoala Greevy Founder CEO of Paubox
Article filed in

Send HIPAA compliant transactional email with Java

by Hoala Greevy Founder CEO of Paubox

Send HIPAA Compliant Transactional Email with Java - Paubox

Java Wrapper for Paubox Email API

The Paubox Java wrapper allows you to construct and send secure, HIPAA compliant messages. This package is the official Java wrapper for the Paubox Email API.

The Paubox Email API allows your application to send secure, HIPAA compliant email via Paubox and track deliveries and opens.

SEE ALSO: Why Healthcare Businesses Choose the Paubox Email API


Add the jar file (Paubox.Email.API.jar) in the classpath of your Java project.

Getting Paubox Email API Credentials

You will need to have a Paubox account. You can sign up here.

Once you have an account, follow the instructions on the Rest API dashboard to verify domain ownership and generate API credentials.

Configuring API Credentials

Include your API credentials in a configuration file.

Create a configuration properties file, and add the following 2 properties to this file:

Give the path to this configuration file as input to ConfigurationManager.getProperties() method. e.g.


To send email, prepare a Message object and call the SendMessage method of EmailService using EmailInterface:

Sending messages

Allowing non-TLS message delivery

If you want to send non-PHI mail that does not need to be HIPAA-compliant, you can allow the message delivery to take place even if a TLS connection is unavailable.

This means the message will not be converted into a secure portal message when a nonTLS connection is encountered. To do this, just pass true to message.setAllowNonTLS() method, as shown below:

Adding Attachments

Checking Email Dispositions

To check the status for any email, use its source tracking id and call the GetEmailDisposition method of EmailService using EmailInterface:


Bug reports and pull requests are welcome on GitHub at

Try the Paubox Email API for FREE today.