Add

Overview

Adds a new sender profile to the account and returns the created object

Syntax

Add(1)

Function Properties

Ordinal Type Description
1 object Required JSON object representing new sender profile properties

Example

This sample code adds a sender profile to your account:

var newSP = {
    "Name" : "SSJS Added Send Profile",
    "CustomerKey" : "test_send_profile",
    "Description" : "An SSJS Added Profile",
    "FromName" : "Andrea Cruz",
    "FromAddress" : "acruz@example.com"
};
var newSenderProfile = SenderProfile.Add(newSP);
Last Updated: Jun 8, 2021