Add
Overview
Adds a new send to your account and returns the status of the send's creationSyntax
Add(1, 2, 3)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | CustomerKey of email message to associate with send |
| 2 | array | Required | Array of list IDs to associate with send |
| 3 | string | Required | Options to associate with the send, such as a different message subject or send time |
Examples
This sample code adds a send to your account, which sends the specified email message to the provided lists:
var status = Send.Add("test_email", [ 12345, 12346 ]);
This sample code adds a send to your account, which sends the specified email message to the provided lists using the additional From name, From email address, and subject specified in the options variable:
var options = {
FromName : "JSON Specified Name",
FromAddress : "aruiz@example.com",
Subject : "JSON Test Mail"
};
var status = Send.Add('test_email', [ 12345, 12346 ], options);