Send a test email of a template
PUT /templates/{uuid}/actions/send_test
/templates/{uuid}/actions/send_testSends the template as a test email to up to 5 addresses. Merge tags are not replaced by subscriber data, so they appear as placeholders.
When to use: To see how a template looks in a real inbox before using it in a campaign.
When not to use: To test a campaign (with its subject and sender) use campaign_send_test.
Side effects: Sends a real email to each address. It counts toward the daily limit of test emails of the plan.
Permissions: Requires the author role or higher, or the marketing.templates.read capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the template. Get it with list_templates.
The updated Template resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/templates/5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835/actions/send_test" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "emails": [ "user@example.com" ], "subject": "string" }'null