---
schema_version: "1"
id: df5ca176e04a7a2886660268bc41047d1ba8d3201922a51ee772ac4f8c245367
title: Send
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_triggeredSendSend.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_triggeredSendSend.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 90f62e21696949012e058f20661d633262ed8a8577b6100656d1759e7608e355
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Send

Sends an email message using an existing triggered send definition.

## Syntax

`Send(emailAddress, sendTimeAttributes)`

## Function Properties

The `Send()` function has the properties in this table.

| Ordinal              | Type   | Description                                                                                                |
| -------------------- | ------ | ---------------------------------------------------------------------------------------------------------- |
| `emailAddress`       | String | Required. Email address used for triggered send. This function does not support the use of subscriber key. |
| `sendTimeAttributes` | Object | An object that contains the attributes to include in the send.                                             |

## Example

This sample code initializes the triggeredSend object and sends the email to the specified email address.

```js
var triggeredSend = TriggeredSend.Init("triggeredSend");
var status = triggeredSend.Send("aruiz@example.com");
```

This sample code initializes the triggeredSend object and sends the email to the specified email address. The `Send()` request includes the subscriber's first name and a coupon code as send time attributes.

```js
var triggeredSend = TriggeredSend.Init("triggeredSend");
var status = triggeredSend.Send("aruiz@example.com", {
  FirstName: "Angel",
  CouponCode: "AA1AF",
});
```

The send returns a status of either OK or Error. You can review the LastMessage for more detailed error information. For example, This sample code demonstrates this using the triggeredSend from the previous example.

```js
var status = triggeredSend.Send("aruiz@example.com");
if (status != "OK") {
  var message = TriggeredSend.LastMessage;
}
```
