Send email campaigns
An Email Campaign sends the emails of a campaign to one recipient, or to an email group, on a schedule. For example, an onboarding series that sends one email on day 0, day 2, and day 4.
Prerequisites
- A campaign with a Campaign Schedules table. Each row has an Email Template and Send After (days). See Run marketing campaigns.
- A lead, a contact, or an Email Group.
- An Email Account for outgoing email.
Create an email campaign
- Open the Email Campaign list and select Add Email Campaign.
- Select the Campaign.
- Enter the Start Date.
- In Email Campaign For, select Lead, Contact, or Email Group.
- Select the Recipient.
- Select the Sender: the user who sends the emails.
- Save.
ERPNext sets the End Date from the last row of the campaign schedule. Each email goes out on the start date plus its Send After (days). For example, a schedule that ends on day 4 with a start date of 22 July ends on 26 July.
To create several email campaigns for one campaign, open the campaign and use its Connections tab.
Personalize the emails
The email template gets the recipient document as doc. For example, if Email Campaign For is Contact, write {{ doc.first_name }} in the template to insert the contact's first name.
Track the campaign
Each sent email appears as a communication on the email campaign. The emails include an unsubscribe link.
| Status | Meaning |
|---|---|
| Scheduled | The start date is in the future. |
| In Progress | Today is between the start date and the end date. |
| Completed | The end date has passed. |
| Unsubscribed | The recipient used the unsubscribe link. |