---
url: https://docs.sunlicense.com/guide/customer-emails.md
---
# Emails to your customers

SunLicense emails your customers about their licenses, in your [branding](/guide/branding): their key, revocations and suspensions, renewals, machine resets, Discord claims and expiry reminders. You choose which ones go out on **Settings → Customer emails**, where each has a preview, and see every email sent or skipped on **Customers → Emails**.

## Which emails

| Email | When | On by default |
|---|---|---|
| License key delivered | See [below](#the-license-key-email) | Yes |
| License revoked | You revoke a license, or a store refund does | Yes ¹ |
| License suspended | You suspend a license, a chargeback does, or you block the customer | Yes ¹ |
| License reinstated | A suspended license works again (also when you unblock the customer) | Yes ¹ |
| License renewed | You press **Renew** on a license: its expiry moves by the policy's duration | Yes ¹ |
| Expires in 7 days | A week before a subscription or trial ends | Yes ¹ |
| Expires tomorrow | A day before it ends | No |
| Machine reset | A machine is removed from a license, by your team or the customer's own reset in Discord | Yes ¹ |
| Claimed in Discord | A Discord account claims a license in your server | Yes ¹ |
| Automation messages | An [automation](/guide/automation-webhooks#email-the-customer) runs **Email the customer**. Customers can unsubscribe from these | Yes |
| Support ticket replies | Your team or the AI answers one of the customer's [support tickets](/guide/support-tickets) opened in the portal or by your team (Discord tickets are answered in their thread) | Yes |

¹ For organizations created from 22 October 2026. Organizations that existed before start with these off and turn them on when they're ready.

Only something that just happened sends an email: re-sent data, imports and edits that don't change a license's status never do. A reminder is sent once per expiry date; one isn't sent when the license was issued after it would have been due (a 5-day trial gets no "7 days left" email), or for licenses that were already about to expire when reminders started.

**Expiry reminders** and **automation messages** carry an unsubscribe link and a one-click unsubscribe for mail apps (RFC 8058). A customer who uses it stops getting both from your organization only, and still gets their key and the other emails; they can resubscribe from the same page. The other emails are about their license and have no unsubscribe link.

## Edit an email

::: v-pre
On Lite and Standard, press **Edit** next to an email on **Settings → Customer emails** to write your own version. The editor has headings, text, buttons, images (your logo is `{{logoUrl}}`), dividers and spacers, and **Insert variable** adds values like `{{product}}`, `{{maskedKey}}` or `{{expiresOn}}` where your cursor is. Show a part only when a value exists with a section: `{{#customerName}}Hi {{customerName}}{{/customerName}}`. The preview on the right uses sample values in your branding; **Send test to me** sends it to your own confirmed address (10 a day per email). **Reset to default** brings back ours.
:::

What you write goes inside the same frame as the defaults: your logo on top, and your support links, footer, "Sent with SunLicense" (unless white-labelled) and, for reminders, the unsubscribe link below. Saving checks your email: scripts, forms and embedded frames are removed, links must start with `https://` or `mailto:`, and only the variables listed in the picker are accepted (only the license key email can include the full key). Values are always escaped, so a product name can't change your email's HTML.

On Free you can look at the editor and send yourself a test of the default. If you move to Free from a paid plan, your versions are kept but the defaults are sent until you upgrade again.

## The license key email

Your customer gets their key by email when:

* **Your team issues a license** with **Email the key to the customer** ticked. The box is in the **Issue license** dialog; it's ticked by default, and the dashboard remembers your choice. Licenses issued through the API, the CLI or Discord only send it when asked to (`"emailKey": true` on `POST /api/v1/licenses`).
* **A buyer pays on a store that doesn't show them your key**: Tebex, Ko-fi, Stripe, WooCommerce, and Lemon Squeezy when it uses SunLicense keys. Stores that already show the key don't trigger an email: Gumroad, Lemon Squeezy and Payhip with their own license keys (it's on their receipt), BuiltByBit and Voxel Shop downloads (it's in the file), SpigotMC (the plugin fetches it), and the redeem page (it's on screen).

The email names the product and policy, shows the full key and its expiry date (in your organization's time zone), and tells the customer to keep it private. It's sent once per license.

To stop sending it, open **Settings → Customer emails** and switch off **License key delivered**. It's on until you do.

## Who it's from

| | Free and Lite | Standard with **Hide SunLicense branding** |
|---|---|---|
| From | "Acme via SunLicense" \<no-reply@mail.sunlicense.com> | "Acme" \<no-reply@mail.sunlicense.com> |
| Footer | "Sent with SunLicense" | Nothing from SunLicense |

"Acme" is the name customers see on your Branding page. Your logo heads the email, and on Lite and Standard your accent colour, support links and email footer appear too.

**Replies** go to the support email on your Branding page (Lite and Standard). Without one, the email has no reply address and tells the customer to keep it, so set a support email if you want to hear from buyers.

Emails come from our domain, so they pass SPF and DKIM checks. Sending from your own domain isn't available yet.

## Limits

To protect delivery for everyone, each organization can send a number of customer emails per day (UTC):

| Free | Lite | Standard |
|---|---|---|
| 50 | 500 | 2,000 |

Over the limit, emails that day are skipped, not sent later; the license itself is issued as usual. **Customers → Emails** shows a banner when it happens. If you need more, [contact us](mailto:hello@sundevs.net). Addresses on domains reserved for examples and testing (like `example.com` or `.test`) are skipped too, since they would only bounce.

Each customer also gets at most 5 notifications a day from your organization, so blocking someone with twenty licenses sends five suspension emails, not twenty. Their license keys always arrive.

## The email log

**Customers → Emails** lists every customer email of the last 90 days: when, which email, the address (partly hidden), and whether it was sent, failed or skipped (daily limit, the customer's daily limit, turned off, unsubscribed, no usable address). Everyone who can see customers can see it; only owners and admins change the settings.

SunLicense only emails customers as part of a license you issued or a purchase you sold, never marketing, and never to an address you type in to send something.
