Send HIPAA compliant transactional email with C#
C Sharp for the Paubox Email API The Paubox C# wrapper allows you to construct and send secure, HIPAA compliant messages. This package is the...
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.
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.
APIKEY: Your-API-Key-Here APIUSER: Your-Username-HereGive the path to this configuration file as input to ConfigurationManager.getProperties() method. e.g.
ConfigurationManager.getProperties("E:projectsPauboxTestsrcresourcesconfig.properties");
static SendMessageResponse SendMessage()
{
Message message = new Message();
Content content = new Content();
Header header = new Header();
message.setRecipients(new String[] { "someone@domain.com",
“someoneelse@domain.com“ });
header.setFrom("you@yourdomain.com");
message.setBcc(new String[] { "bcc-recipient@domain.com" });
header.setSubject("Testing!");
header.setReplyTo("reply-to@yourdomain.com");
content.setPlainText("Hello World!");
message.setHeader(header);
message.setContent(content);
EmailInterface email = new EmailService();
SendMessageResponse response = email.SendMessage(message);
return response;
}
static SendMessageResponse SendNonTLSMessage()
{
Message message = new Message();
Content content = new Content();
Header header = new Header();
message.setRecipients(new String[] { "someone@domain.com",
“someoneelse@domain.com“ });
header.setFrom("you@yourdomain.com");
message.setBcc(new String[] { "bcc-recipient@domain.com" });
header.setSubject("Testing!");
header.setReplyTo("reply-to@yourdomain.com");
content.setPlainText("Hello World!");
message.setAllowNonTLS(true);
message.setHeader(header);
message.setContent(content);
EmailInterface email = new EmailService();
SendMessageResponse response = email.SendMessage(message);
return response;
}
static SendMessageResponse SendMessage()
{
Message message = new Message();
Content content = new Content();
Header header = new Header();
message.setRecipients(new String[] { "someone@domain.com",
“someoneelse@domain.com“ });
header.setFrom("you@yourdomain.com");
message.setBcc(new String[] { "bcc-recipient@domain.com" });
header.setSubject("Testing!");
header.setReplyTo("reply-to@yourdomain.com");
content.setPlainText("Hello World!");
message.setHeader(header);
message.setContent(content);
// Base64 encode attachment contents and use a valid content type.
Attachment attachment = new Attachment();
List listAttachments = new ArrayList();
attachment.setFileName("hello_world.txt");
attachment.setContentType("text/plain");
attachment.setContent("SGVsbG8gV29ybGQhn");
listAttachments.add(attachment);
EmailInterface email = new EmailService();
SendMessageResponse response = email.SendMessage(message);
return response;
}
static void GetEmailDisposition()
{
EmailInterface email = new EmailService();
GetEmailDispositionResponse response = email.GetEmailDisposition(“2a3c048485aa4cf6”);
}
C Sharp for the Paubox Email API The Paubox C# wrapper allows you to construct and send secure, HIPAA compliant messages. This package is the...
PHP Library for the Paubox Email API The Paubox PHP wrapper allows you to construct and send secure, HIPAA compliant messages. This package is the...
Ruby for Paubox Email API The Paubox Ruby gem allows you to construct and send secure, HIPAA compliant transactional email. This package is the...
Every Friday we bring you the most important news from Paubox. Our aim is to make you smarter, faster.