---
title: sendtransactionmail
slug: campaign/docs/sendtransactionmail
docTags: 
createdAt: 2026-07-02T19:01:47.121Z
---

Additional parameters for personalization can be transmitted. You can also send SMS if your client is configured accordingly. In certain cases, this operation can be used to send event mailings several times to already existing recipients.

:::hint{type="info"}
- **Notes on using this operation**
  You can use this operation to send mailings to existing recipients.
- Each call of this operation creates a new recipient dataset.
- Unsubscribes and bounces are always associated with the ID field (which may be, for example, the email address) of the recipient list used.
- Use this operation only for confirmation mails, notifications, status mails, or new subscriptions in case recipients forgot their password.
- Some of these transactional mails must be free of promotional content.
- This operation is available in the form service.
- You need a transaction recipient list (recipient list with the property "Transaction API") and its authorization code. See API overview. To set up a transaction recipient list, contact [customer support](mailto\:support@optimizely.com).
:::

:::hint{type="danger"}
**Warning**
Never use this HTTP API request directly on a web page. HTTP API requests of the form service must always be executed by the server without exposing the used source code to others. Otherwise there is a potential risk that other web user read these data and send emails from your client and at your expense.
:::

**Parameters**

| Name                           | Mandatory | Default value | Description                                                                                                                                                                                                                                                                                     |
| ------------------------------ | --------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| bmRecipientId                  | yes       | –             | If the mailing is of the type email, the parameter must contain the email address of the recipient. If an SMS is sent, the parameter must contain the telephone number of the recipient.                                                                                                        |
| bmMailingId                    | yes       | –             | The ID of the mailing (type: event) to be sent. The mailing must be associated with the same recipient list used by the authorization code.                                                                                                                                                     |
| bmPersonalizedAttachmentsToken | no        | –             | To send an attachment, set the value of this parameter to the return value of the operation [uploadpersonalizedattachments](docId\:axpuZtKYem6f37kFJVeRy) (i.e., the token). The personalized attachment feature must first be activated by [customer support](mailto\:support@optimizely.com). |
| bmSanitize                     | no        | –             | Set the value of this parameter to true to convert potentially dangerous characters in the supplied recipient data into their respective HTML equivalents.                                                                                                                                      |
| ...                            | no        | –             | Any parameter that corresponds to a parameter of the recipient list.                                                                                                                                                                                                                            |

**Return values**

| Value                                                                                | Description                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| enqueued: \<bmMailId>                                                                | The sending process has been started. Invoke the operation *getsendstatus* to get sending status details.                                                                                                                                                                                                                                                      |
| not\_found                                                                           | The transmitted mailing with the given **bmMailingId** could not be found.                                                                                                                                                                                                                                                                                     |
| wrong\_tag                                                                           | Authorization failed.<br />Error codes:<br />- 501=wrong authentication tag<br />- 502=wrong request IP<br />- 503=wrong request method<br />- 504=wrong protocol<br />- 505=wrong recipient list<br />- 506=wrong action<br />- 507=action not found<br />If a verification of the authentication tag does not solve the problem, contact *customer support*. |
| missing\_id                                                                          | No **bmMailingId** and/or no **bmRecipientId** was/were transmitted.                                                                                                                                                                                                                                                                                           |
| syntax\_error                                                                        | The transmitted **bmRecipientId** or another parameter is invalid.                                                                                                                                                                                                                                                                                             |
| syntax\_error: Invalid bmPersonalizedAttachmentsToken.                               | The token is expired, was not created for this client, or has been tampered with.                                                                                                                                                                                                                                                                              |
| wrong\_mailing\_type                                                                 | The mailing is not of the type event.                                                                                                                                                                                                                                                                                                                          |
| wrong\_mailing\_type: Personalized attachments can only be used with EMAIL-mailings. | Personalized attachments can only be used for mailings of the media type email.                                                                                                                                                                                                                                                                                |
| wrong\_mailing\_status                                                               | Personalized attachments can only be used for mailings of the media type email.                                                                                                                                                                                                                                                                                |
| wrong\_mailing\_status                                                               | The mailing with the given **bmMailingId** was stopped, is finished or the property of the used recipient list is **not** Transaction API.                                                                                                                                                                                                                     |
| system\_error                                                                        | A general error occurred.                                                                                                                                                                                                                                                                                                                                      |

**Example 1**

```javascript
.../form/.../sendtransactionmail?bmRecipientId=john.smith%40example.com&bmMailingId=12345 
```

The mailing with the ID *12345* is sent to the recipient with the ID [\_john.smith@example.com\_](#).

**Example 2**

```javascript
.../form/.../sendtransactionmail?bmRecipientId=john.smith%40example.com&
bmMailingId=12345&bmPersonalizedAttachmentsToken=1a2b3c456 
```

The mailing with the ID *12345* is sent to the recipient with the ID [\_john.smith@example.com\_](#) along with a personalized attachment (using the token *1a2b3c456*). For more examples for using the personalized attachments, see [Personalized Attachments - Examples](docId\:eWEtEpCU4ZxwjEGMqbefV).
