In this article, we will explain how to test your emails that were customized with the Brevo Template Language to make sure all content is displaying correctly.
Good to know
- To learn how to customize your emails using the Brevo Template Language, refer to About Brevo Template Language.
- If you encounter any issue while testing your emails, refer to Troubleshoot your emails customized with Brevo Template Language to learn how to fix the most common issues.
How to test an email?
After creating an email template or campaign that contains contact attributes and transactional parameters placeholders, you may want to make sure they are correctly replaced by your contacts and events information.
Hi,
or like Hi there,
if you specified "there" as a fallback text.
To test your personalization, Brevo offers three options:
Send a test email
The Send a test option allows you to:
- View how the content of your email is displayed in a recipient's inbox,
- Make sure the contact attributes are correctly replaced with the contact's information,
- Make sure the transactional parameters are correctly replaced with the event's information.
Limitations
Please note that the Send a test email option may not replace your placeholders depending on:
- The type of email your are creating (campaign or template),
- The type of placeholders you inserted in your email (contact attributes or transactional parameters).
|
Email campaign | Email template |
Contact attributes |
If there is an existing email address and attribute value in your Brevo contacts list, the value will be replaced by contact's information. | |
Transactional parameters |
The parameter values will be populated in your test email only in the following cases: |
The parameter values in your test email will appear as blank since params are populated at the time of sending when the API call is received or when the Automation workflow is triggered by an event.
|
If you want to test your email on real email clients and if you want to check that your placeholders are working, you can send your campaign to your test list.
To send a test email to your test list:
- Access the Preview & Test window. You can either:
- Click Preview & Test from the campaign creation flow.
- Click Send test email from the Drag & Drop Editor. The Preview & Test window opens.
- Click Preview & Test from the campaign creation flow.
- Go to the Send test email tab.
- In the block at the right of your screen, choose from the Recipient drop-down list the test recipients you want to send your test to. You can add as many test recipients as you want and need. To learn more, check our dedicated article Create and use a test list.
💡 Good to knowUncheck the box to remove a recipient from this test and click the bin icon to definitely remove a recipient from the list.
- Optional: if you need to add other recipients to this list, click + Add new test recipient.
- Click Send test.
Your test email will be sent and you will be able to review it to make sure the placeholders are correctly replaced.
You can quickly send a test email from your Email campaigns list to see what it looks like:
- Go to Campaigns > Email.
- Search for the campaign you want to test in the list. You can search for your campaign name in the Campaign ID, Name search bar, or filter your campaigns using the different tabs.
- Click More ▼ > Send a test.
- In the block at the right of your screen, choose from the Recipient drop-down list the test recipients you want to send your test to. You can add as many test recipients as you want and need. To learn more, check our dedicated article Create and use a test list.
💡 Good to knowUncheck the box to remove a recipient from this test and click the bin icon to definitely remove a recipient from the list.
All the recipients from your Test list will automatically receive your email campaign to review. A green box at the top of your Email campaigns list will confirm the sending:
Preview your email as a recipient
The Preview as a recipient option allows you to:
- Quickly view how the content of your email would be displayed to a specific recipient,
- Make sure the contact attributes are correctly replaced with the contact's information,
- Make sure the transactional parameters are correctly replaced with the event's information.
To preview your campaign as a customer:
- Access the Preview & Test window. You can either:
- Click Preview & Test from the campaign creation flow.
- Click
> Preview from the Drag & Drop Editor.
- Click Preview & Test from the campaign creation flow.
- Go to the Preview as customer tab.
- In the block at the right of your screen, search for the Recipient field and start typing the name or email address of one of your contacts to have a preview of what this contact will receive.
- Click Refresh preview.
Your email preview will appear and you will be able to review it to make sure the placeholders are correctly replaced.
Use an API call
To reliably test an email containing transactional parameters placeholders, we recommend creating the email template or campaign as you would normally do, and then sending the email template or campaign using the appropriate API call:
Your API call should then identify you as the recipient and include actual data for the transactional parameters included in your email template or campaign.
⏩ What's next?
🤔 Have a question?
If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.