Send

Sends an email message using an existing triggered send definition. This function does not support the use of subscriber key as a valid parameter.

Send(1, 2)

OrdinalTypeDescription
1stringRequiredEmail address used for triggered send
2stringAttributes included at send time for triggered send

This sample code initializes the triggeredSend object and sends the email to the specified email address:

This sample code initializes the triggeredSend object and sends the email to the specified email address, which includes the send time attributes of a first name and a coupon code. You can pass in any attribute previously defined as part of the send time attributes.

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.