> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paubox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Paubox Rails SDK

> Send HIPAA compliant email from Rails applications using ActionMailer and the official Paubox Rails gem.

The Paubox Rails SDK (`paubox_rails`) integrates the [Paubox Email API](https://docs.paubox.com/email-api.md) directly into Rails as an ActionMailer delivery method. Your mailer classes work exactly as they do today; just point ActionMailer at Paubox and every email you send becomes encrypted and HIPAA compliant. The gem also includes a lightweight client for the [Paubox Forms API](https://docs.paubox.com/forms.md).

```ruby theme={null}
# Gemfile
gem 'paubox_rails'
```

## What you can do

* Send encrypted, HIPAA compliant email through standard Rails mailers and ActionMailer
* Use HTML and plain-text templates, CC and BCC, reply-to, and attachments. Other headers are not sent to Paubox.
* Deliver synchronously with `deliver_now` or asynchronously with `deliver_later`
* Schedule sends, manage receiving domains and mailboxes, and read inbound email through `Paubox::Client` from the `paubox` gem
* Manage webhook endpoints with `PauboxRails::Webhooks`
* Retrieve Paubox Form schemas and submit form responses with file attachments

## Requirements

* ActionMailer 4.0 or later. The samples use parameterized mailers (`with` and `params`), which need Rails 5.1 or later.
* Ruby 2.5 or later
* Dependencies installed automatically: `actionmailer` and the `paubox` gem (`~> 1.0`)

The scheduling and receiving samples need `paubox` 1.3.1 or later. Run `bundle update paubox` if your lockfile has an older 1.x version. The webhook samples need `paubox_rails` 1.2.0 or later.

## Get started

> [card] [Quickstart](https://docs.paubox.com/rails-sdk/quickstart.md)
>
> Add the gem, configure credentials, and send your first email in minutes.

> [card] [Authentication](https://docs.paubox.com/rails-sdk/authentication.md)
>
> Configure your API key via a Rails initializer.

> [card] [Email delivery](https://docs.paubox.com/rails-sdk/email-delivery.md)
>
> Full guide to sending email through ActionMailer with Paubox.

> [card] [Forms client](https://docs.paubox.com/rails-sdk/forms-client.md)
>
> Retrieve form schemas and submit responses.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.