---
title: "Trial ending email template"
description: "A trial reminder that says what actually happens on the last day. Send it a few days before a trial ends."
url: "https://nextmail.sh/email-templates/trial-ending"
---

[Templates](https://nextmail.sh/email-templates.md)[Orders and billing](https://nextmail.sh/email-templates.md#commerce)

# Trial ending email template

A trial reminder that says what actually happens on the last day.

[Use this template](https://nextmail.sh/mail/templates?starter=trial-ending) [Use this template](https://nextmail.sh/signup.md?next=%2Fmail%2Ftemplates%3Fstarter%3Dtrial-ending)[Customize with AI](https://nextmail.sh/email-templates/generate.md?starter=trial-ending)

- **From**
  Northwind <hello@example.com>
- **Subject**
  Your Northwind trial ends 4 October
- **Preview text**
  Your Northwind trial ends 4 October

![Preview of the Trial ending template](https://nextmail.sh/email-templates/previews/trial-ending-desktop.webp?v=75028138192c)

trial-ending.txt

```
Your {{productName}} trial ends {{endDate}}

Your trial ends {{endDate}}

You have {{daysLeft}} days left on your {{productName}} trial.

{{whatHappensNext}}

Choose a plan [{{actionUrl}}]

Not the right time? Doing nothing is a valid answer. You can come back whenever.

{{footerNote}}
```

Shown with sample values. The HTML and plain-text tabs keep the placeholders.

About

## When to send it

Send it a few days before a trial ends. It gives the end date and the days left, explains in one line what happens to the account afterwards, and makes doing nothing an acceptable answer.

7 values to fill

## What each send fills in

Required values have to come with every send. The rest fall back to the default shown here.

| Placeholder | Kind | Required | Default |
| --- | --- | --- | --- |
| `{{productName}}` | Text | Required | None |
| `{{endDate}}` | Text | Required | None |
| `{{daysLeft}}` | Text | Optional | 3 |
| `{{whatHappensNext}}` | Text | Optional | Your account stays open and your data is kept. You just lose the paid features until you choose a plan. |
| `{{actionUrl}}` | Link | Required | None |
| `{{footerNote}}` | Text | Optional | You are receiving this because you started a trial. |
| `{{unsubscribeUrl}}` | Link | Optional | None |

API

## Send it from your code

Create a template from this design once, then send it with the values for each message.

```
import { init, nextmail } from '@nextmail/sdk' init({ apiKey: process.env.NEXTMAIL_API_KEY }) await nextmail.templates.create({  name: 'Trial ending',  slug: 'trial-ending',  starter: 'trial-ending',  publish: true,}) const sent = await nextmail.templates.send('trial-ending', {  from: 'Northwind <hello@example.com>',  to: 'maya@example.com',  props: {    productName: 'Northwind',    endDate: '4 October',    actionUrl: 'https://example.com/billing',  },}) console.log(sent.id, sent.status)
```

Orders and billing

## More templates like this

![Preview of the Order shipped template](https://nextmail.sh/email-templates/previews/order-shipped-desktop.webp?v=d308f1dd6b64)

### Order shipped

A shipping notice with the order number, carrier and delivery estimate in a details table.

6 styles

![Preview of the Shipping update template](https://nextmail.sh/email-templates/previews/shipping-update-desktop.webp?v=d6393101dc81)

### Shipping update

A dispatch notice with the carrier, a tracking number set in mono and the delivery address.

6 styles

![Preview of the Order receipt template](https://nextmail.sh/email-templates/previews/receipt-desktop.webp?v=7373999a2de8)

### Order receipt

An order confirmation with up to three line items and a total.

6 styles

![Preview of the Payment receipt template](https://nextmail.sh/email-templates/previews/invoice-receipt-desktop.webp?v=9d256381a4f6)

### Payment receipt

A receipt with the amount charged, what it was for, the card used and a link to the invoice.

6 styles

Start from one

## Pick a design, change anything, and send it from your code.

Every template opens in the editor as blocks you can move, restyle or delete, and sends through the API with the values filled in.

[Open mail](https://nextmail.sh/mail/inbox) [Get Started](https://nextmail.sh/signup.md)[How templates work](https://nextmail.sh/features/templates.md)
