The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Send Functions

These functions allow you to access and control how emails are sent from your Marketing Cloud Engagement account.

In your server-side JavaScript code, first load the core library using the syntax below:

Use this sample code as a model for your own server-side JavaScript code.

To interact with an existing send via server-side JavaScript, you must first initialize the object. This code initializes a send with a send ID of 12345:

Once you initialize the send, you can use the other applicable functions.