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

# Automatically send emails based on partner activity

The **Send email** [automation](/knowledge-base/automation/automation) action lets you reach out to partners the moment something relevant happens, without having to track it or send the email yourself.

This is useful for the kind of partner communication that depends on timing: a welcome email the day someone joins, a nudge when a partner has not referred anyone in a while, a reward email when they cross a revenue milestone, or a re-engagement email after a stretch of inactivity. None of these need to be sent manually once the automation is set up.

You can pair Send email with any automation trigger your program supports, and create a custom email to be sent.

***

### Set up the automation

To set up the automation:

1. Go to **Automations** in your program dashboard.
2. Click **Create automation**: <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/9749e538.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=9afb3278970175639f07fdfc700196fa" alt="" width="2870" height="1512" data-path="images/articles/automatically-send-emails-based-on-partner-activity/9749e538.webp" />
3. Choose the trigger you want to use (see the full list below).
4. Fill in the trigger's settings (for example, which tag, which milestone, or how many days).
5. For the action, select **Send email**: <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/63c316fb.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=13b388810f2af29652f5dd5dcbff4dbf" alt="" width="2876" height="1512" data-path="images/articles/automatically-send-emails-based-on-partner-activity/63c316fb.webp" />
6. Pick the email template to send. Click **Create new email** to create your own template, or select one of your existing program emails or a custom email (see below). <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/55ded9b3.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=81b1b828206be9fef565b2ca253f01ac" alt="" width="2872" height="1522" data-path="images/articles/automatically-send-emails-based-on-partner-activity/55ded9b3.webp" />
7. Click **Create** to save the automation.

The email goes out automatically every time the trigger condition is met.

***

### Create a custom email to use in an automation

If none of your existing emails fit, you can build a new one from scratch and use it in the Send email action.

1. Go to the **Emails** page for your affiliate program, **Emails** tab: <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/92219c91.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=02962ca239982a3b9d061e8d106cdc15" alt="" width="2868" height="1474" data-path="images/articles/automatically-send-emails-based-on-partner-activity/92219c91.webp" />
2. Scroll down to the **Custom emails** section and click **Create custom email**: <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/d74b45f9.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=dd33384474ff9cc139a9f46094f41476" alt="" width="2868" height="1502" data-path="images/articles/automatically-send-emails-based-on-partner-activity/d74b45f9.webp" />
3. You can start from a blank template or copy one of the existing program emails to edit: <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/fc002e12.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=7348ca425b506626664de4a6599518a0" alt="" width="2870" height="1504" data-path="images/articles/automatically-send-emails-based-on-partner-activity/fc002e12.webp" />
4. Add the email name and subject, and click **Create and Edit**: <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/79da05e4.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=3e3958d574b29f6e890508bc650dc4cf" alt="" width="2866" height="1514" data-path="images/articles/automatically-send-emails-based-on-partner-activity/79da05e4.webp" />
5. Edit the content using the same editor you use for your other program emails. <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/2f3d08d8.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=3f85beccd6452c984b43d476025e2301" alt="" width="2876" height="1514" data-path="images/articles/automatically-send-emails-based-on-partner-activity/2f3d08d8.webp" />
6. Preview (Eye icon) and send yourself a test email (Envelope icon) to check formatting. <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/912d1292.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=ee6e59d02cf424ba4858505e0a3be7fd" alt="" width="2868" height="1502" data-path="images/articles/automatically-send-emails-based-on-partner-activity/912d1292.webp" />
7. Go back to your automation (or create a new one) and select the custom email in the **Send email** action picker. Custom emails appear in the same list as your other program emails. <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/3d68b8c2.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=169d161836e9322149279f549f22b0e3" alt="" width="2876" height="1508" data-path="images/articles/automatically-send-emails-based-on-partner-activity/3d68b8c2.webp" />

You can edit, preview, test, or delete a custom email at any time from the **Emails** → **Custom emails** section. <img src="https://mintcdn.com/partnero/hZj0bBJR5darGQef/images/articles/automatically-send-emails-based-on-partner-activity/03f8d4ac.webp?fit=max&auto=format&n=hZj0bBJR5darGQef&q=85&s=4d83dd2166d23761f10a12033e264ad3" alt="" width="2874" height="1510" data-path="images/articles/automatically-send-emails-based-on-partner-activity/03f8d4ac.webp" />

***

### Available triggers

Here are all available automation triggers that can trigger an email:

| Trigger | Description |
| - | - |
| Partner joins program | Fires immediately when a new partner signs up |
| Partner makes first referral | Fires when partner generates their first lead |
| Partner generates first sale | Fires when partner's referral makes first purchase |
| Partner earns first commission | Fires when partner earns their first commission |
| Partner reaches milestone | Fires when partner reaches X signups, customers, or \$X in all-time or recurring revenue |
| Partner anniversary | Fires X days after partner joined (daily check) |
| Partner inactive for X days | Fires when partner has no activity for X days (daily check) |
| Partner hasn't referred in X days | Fires when partner has no new referrals for X days (daily check) |
| Tag is assigned to partner | Fires when a specific tag is assigned, through any path: manually, bulk action, API, or another automation |


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