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

# Before it ends

> Email customers with a scheduled cancellation a set number of days before it takes effect.

A customer with a [scheduled cancellation](https://docs.onemrr.dev/churn/scheduled-cancellations.md) is still paying, and may not have decided for good. **Before it ends** reaches them a set number of days before their subscription ends, while there's still time to stay.

## Set it up

Open **Churn & retention → Automations → Before it ends** and choose:

* **What happens:**
  * **Off.**
  * **Notify me.**
  * **Prepare an email:** a draft for each customer, to review and send from Scheduled cancellations.
  * **Email automatically.**
* **How long before it ends:** 3, 7, 14 or 30 days. OneMRR shows how many cancellations reach that mark in the next 7 days.
* **Holdout group:** off, 10%, 20% or 30% of eligible customers left out at random, so [Email impact](https://docs.onemrr.dev/churn/email-impact.md) can show whether the email changes what they do.

![Before it ends in Automations, with How long before it ends outlined](https://mintcdn.com/one-mrr/r0eSCeyIYQOzU0L6/images/churn/before-it-ends.png?fit=max\&auto=format\&n=r0eSCeyIYQOzU0L6\&q=85\&s=a3a554cfa5b805c2beda33d5f61f8764)

Turning it on never emails cancellations that were already inside the window at that moment. Automatic sends use the sending hours and daily limit under **Sending settings**.

## Write the email

Select **Edit email** to write it: subject, preview text, greeting, heading, message, and an optional button (for example, to keep the plan or talk to you). The preview shows it as the customer will see it, with their own plan and end date. Select **Send test email** to try it before turning it on.

## Before each send

Right before each email goes out, OneMRR checks that the cancellation is still scheduled (not withdrawn), the customer is still paying, has an email address, and hasn't unsubscribed or bounced. Each cancellation gets at most one email.

## What's next

* **Would have emailed / Sent, last 30 days** show the reach so far.
* **Next to reach the mark** lists the next customers due.
* **See its impact** opens [Email impact](https://docs.onemrr.dev/churn/email-impact.md).


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