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

# emailTemplateSendTest

> Send a test email of a saved template, one email per address, as the template builder's Send test email does. Sends the saved template, not unsaved edits. Takes up to 20 addresses per call, and counts toward the store's 100 test recipients per day, shared with the Redo app. `orderNumber` fills the email with that order's data, or with its return or Try-first contract for those templates; when it is omitted or matches nothing, the email carries sample data (see `sampleData`). A call that fails may already have sent to some addresses. Returns null if no template with that id is owned by the caller.

**Required scopes:** [`marketing_templates_send`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_templates_send)

**Store must have one of:** `EMAIL_SMS`, `HSA`, `ORDER_TRACKING`, `RETURNS`, `TNPL`, `REVIEWS`

## Arguments

**emailAddresses** `[String!]!` *required*

The addresses to send to, at least 1 and at most 20.

**id** `ID!` *required*

The template's `id`, or its `legacyId` from an earlier version of the Redo API.

**orderNumber** `String`

An order number of this store, such as `#1001`, whose data fills the email instead of sample data.

## Returns

**emailTemplateSendTest** `[EmailTemplateSendTestResult](/docs/api-reference/v3/reference/marketing/email-template-send-test-result)`

What a test send did.

**fields**

**recipientCount** `Int!` *required*

How many addresses the test email was sent to.

**sampleData** `Boolean!` *required*

Whether the email was filled with Redo's sample data instead of a real order or return. True when `orderNumber` was omitted, matched no order of this store, or (for a return template) matched an order with no return.

## Example

```graphql theme={null}
mutation {
  emailTemplateSendTest(emailAddresses: "...", id: "...", orderNumber: "...") {
    recipientCount
    sampleData
  }
}
```


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