Skip to main content

How it works

paubox_rails registers :paubox as an ActionMailer delivery method. Your mailer classes are standard Rails mailers; the gem intercepts delivery and routes each message through the Paubox Email API, ensuring every email is encrypted and HIPAA compliant.

Set the delivery method

Globally (all environments):
Per environment (recommended for production only):
Leave development and test environments using :letter_opener, :test, or another local delivery method.

Create a mailer

Mailers work exactly as documented in the Rails ActionMailer guide:
Templates live in app/views/patient_mailer/ as usual (appointment_reminder.html.erb, appointment_reminder.text.erb).

Deliver email

Per-message options

Pass delivery_method_options in the mail() call to override delivery behavior for a specific message:

Attachments

Attach files using standard ActionMailer attachment helpers:

Tracking IDs

The ActionMailer delivery flow does not surface per-send tracking IDs. If you need to record and look up a tracking ID for a specific send, use the Paubox Email API directly via a REST client alongside this gem.