# `Accrue.Emails.Receipt`
[🔗](https://github.com/szTheory/accrue/blob/accrue-v0.3.0/lib/accrue/emails/receipt.ex#L1)

Canonical receipt email (MAIL-03).

Sent when a one-off or subscription payment succeeds. This module does
NOT attach a PDF — the PDF-bearing variant is `Accrue.Emails.InvoicePaid`
(Plan 06-06). Both are registered in `Accrue.Workers.Mailer` dispatch.

`Accrue.Emails.PaymentSucceeded` is a legacy alias retained for Phase 1
back-compat; downstream code should dispatch by atom (`:receipt`).

# `debug_mjml_template`

Returns the raw MJML template. Useful for debugging rendering issues.

# `render`

Safely render the MJML template using Phoenix.HTML

# `render_text`

```elixir
@spec render_text(map()) :: String.t()
```

# `subject`

```elixir
@spec subject(map()) :: String.t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
