Add

Overview 

Adds a new send to your account and returns the status of the send’s creation

Syntax 

Add(1, 2, 3)

Function Properties 

OrdinalTypeDescription
1stringRequiredCustomerKey of email message to associate with send
2arrayRequiredArray of list IDs to associate with send
3stringRequiredOptions 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:

1var 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:

1var options = {
2    FromName : "JSON Specified Name",
3    FromAddress : "aruiz@example.com",
4    Subject : "JSON Test Mail"
5};
6
7var status = Send.Add('test_email', [ 12345, 12346 ], options);