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)::letter_opener, :test, or another local delivery method.
Create a mailer
Mailers work exactly as documented in the Rails ActionMailer guide:app/views/patient_mailer/ as usual (appointment_reminder.html.erb, appointment_reminder.text.erb).
Deliver email
Per-message options
Passdelivery_method_options in the mail() call to override delivery behavior for a specific message: