---
title: "Customer emails and notifications"
description: "Who tells a customer about billing, and how: the provider's own lifecycle emails and their reminders, the few notices the package sends, and the in-app notices billing events derive, never by email."
canonical_url: "https://nuxt-backend.dev/docs/build/billing/events/customer-emails"
---
# Customer emails and notifications

> Who tells a customer about billing, and how: the provider's own lifecycle emails and their reminders, the few notices the package sends, and the in-app notices billing events derive, never by email.

Version: nuxt-backend 0.6.x · Tab: Build · Kind: concept · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

Polar emails your customers about their money, and your app does not. As the merchant of record, Polar sends receipts and invoices, subscription confirmations and renewals, trial and renewal reminders, payment failures and cancellations. The package never rebuilds them. It sends only what no provider sends, such as a gift's notice to its recipient, and billing events reach people inside the app, never as a second email.

## The model

```text
provider event ─▶ the provider's own email      (receipt, renewal, reminders, payment failed)
       │
       └──▶ /billing/events ─▶ activity trail row ─▶ in-app notice (billing kinds: in the app only)

gift paid ─▶ the package's gift notice            (no provider sends one)
```

<table>
<thead>
  <tr>
    <th>
      
    </th>
    
    <th>
      Sends
    </th>
    
    <th>
      Owns
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Polar
    </td>
    
    <td>
      Receipts, invoices, renewals, trial and renewal reminders, payment failures, cancellations
    </td>
    
    <td>
      Their wording, timing and language, set in its dashboard
    </td>
  </tr>
  
  <tr>
    <td>
      The package
    </td>
    
    <td>
      The gift notice, the plan pass ending notice and the reminders Polar leaves out (below)
    </td>
    
    <td>
      Their templates, overridable as <a href="https://nuxt-backend.dev/docs/build/email/templates">
        email templates
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Your app
    </td>
    
    <td>
      Anything else you choose, from an <a href="https://nuxt-backend.dev/docs/build/billing/events#run-your-code-on-an-event">
        event handler
      </a>
    </td>
    
    <td>
      Its own messages, and its users' consent to them
    </td>
  </tr>
</tbody>
</table>

Polar's two reminders, as its docs describe them (checked on 2026-10-25):

<table>
<thead>
  <tr>
    <th>
      Reminder
    </th>
    
    <th>
      Who gets it
    </th>
    
    <th>
      When
    </th>
    
    <th>
      Switch
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Renewal
    </td>
    
    <td>
      Subscriptions on a cycle of six months or more: yearly plans, monthly plans every 6 months or more
    </td>
    
    <td>
      7 days before the renewal
    </td>
    
    <td>
      Settings → Customer notifications
    </td>
  </tr>
  
  <tr>
    <td>
      Trial conversion
    </td>
    
    <td>
      Trials of 1 day or more
    </td>
    
    <td>
      3 days before the end, or 1 day for trials of 1 to 3 days
    </td>
    
    <td>
      Settings → Customer notifications
    </td>
  </tr>
</tbody>
</table>

Neither goes to a free subscription, or to one already set to cancel at the period's end.

The package sends the billing emails no provider can, each through your `setupEmail` instance and a template of its own. The gift notice and the plan pass notices go out on their own. The annual reminder and the withdrawal receipt are parts of `setupBilling({ lifecycle })`, each off until named, and the trial and checkout emails are flows of `setupEmail({ lifecycle })`:

### What the package sends

- **The gift notice** (the `gift` template), since the recipient has no customer account to hear from the provider ([The notification email](https://nuxt-backend.dev/docs/build/growth/offers/gifts#the-notification-email)).
- **The plan pass ending notice**, for the same reason as the gift notice: no provider tells a workspace its gifted [plan pass](https://nuxt-backend.dev/docs/build/growth/offers/plan-passes) is about to end.
- **An annual reminder** (`setupBilling({ lifecycle: { renewalReminders } })`, the `renewalReminder` template). California's auto-renewal law asks for a yearly reminder of a renewing subscription's terms. Polar's renewal reminder covers cycles of six months or more, so the package sends the yearly one only to subscriptions on shorter cycles, to their billing managers, at the first renewal eleven months or more after the start and then once a year. A yearly plan never gets two.
- **A withdrawal receipt** (`lifecycle.withdrawal`, the `withdrawalReceipt` template): the email that confirms an EU withdrawal with its date and time, to the person who pressed the button, where Polar doesn't provide one ([Follow subscription law](https://nuxt-backend.dev/docs/ship/compliance/subscriptions)).
- **A reverse trial's end**: the `giftPassEnding` template, saying the trial ends, three days ahead ([Run a reverse trial](https://nuxt-backend.dev/docs/build/growth/offers/plan-passes#run-a-reverse-trial)).
- **Trial and checkout emails** (`setupEmail({ lifecycle })`): `trialEnding` is transactional and goes a week before a trial of 14 days or more ends, ahead of Polar's own reminder, so a long trial gets both; `checkoutAbandoned` is marketing, sent only to people who agreed to it ([Send lifecycle emails](https://nuxt-backend.dev/docs/build/growth/engage/lifecycle-emails)).

## Why it works this way

A charge, a renewal and a failed payment happen at Polar, so Polar tells the customer, at the right moment, with the right legal wording and the invoice attached. Copying those emails into the app would send the customer two of each, and the second would go wrong as soon as Polar changes its own.

Polar can't know the app's own world: who in a workspace bought what, a gift waiting for someone, a balance about to run out. Those reach people in the app. Every billing event the package records on the [activity trail](https://nuxt-backend.dev/docs/build/billing/events#on-the-activity-trail) declares the channels it may notify on. Billing, gift and referral kinds notify in the app alone: an order paid, a plan changed, a subscription cancelled, credits low or gone, a gift purchased or claimed. The [in-app inbox](https://nuxt-backend.dev/docs/build/email/notifications) delivers them to the workspace's owners and admins, or to the account billed on its own, and each person chooses which they get with the preferences. They are rows of the trail too, readable on `/settings` and `/security`.

Key terms:

- **Lifecycle email**: a message the provider sends about a customer's own purchase, such as a receipt, an invoice, a renewal, a trial reminder or a failed payment.
- **Transactional notice**: a message the app sends because something happened to the person, such as a gift for them. It carries no promotion.
- **Channel matrix**: what each event kind may notify on, in the app, by email or neither, listed in the [events reference](https://nuxt-backend.dev/docs/reference/backend/events#backend-events).

## What it is not

- **No billing email twice.** A billing, gift or referral event never derives an email, and the [notifications](https://nuxt-backend.dev/docs/build/email/notifications) keep its kinds in the app. A customer never gets the app's copy of a provider's message.
- **No offer in a notice.** A gift notice, like a sign-in code, carries no promotion ([Guardrails on growth features](https://nuxt-backend.dev/docs/start/concepts/principles#guardrails-on-growth-features)).
- **No switching the provider's emails off.** Turning them off would leave customers with no receipt and no warning before a renewal. Doctor's billing findings warn about the provider settings a catalog relies on, and `doctor --fix` turns the lifecycle emails back on, never off ([Apply the provider settings](https://nuxt-backend.dev/docs/services#recommended-settings)).
- **Not legal advice.** Which reminders a law asks of you depends on where your customers live: [Follow subscription law](https://nuxt-backend.dev/docs/ship/compliance/subscriptions) cites the sources.

## What this means for you

- Leave receipts, renewals and payment failures to Polar, and set their branding and language in its dashboard.
- Keep Polar's renewal and trial reminders on. The package fills the gaps around them, never on top of them.
- Restyle the gift notice as the `gift` [template](https://nuxt-backend.dev/docs/build/email/templates), and keep it free of offers.
- For an app-side reaction to a payment, such as a welcome to a paid feature, write an [event handler](https://nuxt-backend.dev/docs/build/billing/events#run-your-code-on-an-event) or read the [activity trail](https://nuxt-backend.dev/docs/build/auth/admin/audit-log).
- For marketing email to customers, use the email capability's [marketing sends](https://nuxt-backend.dev/docs/build/growth/engage/announcements#marketing-email), with consent and an unsubscribe link.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
