Add

Overview 

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

Syntax 

Add(1)

Function Properties 

OrdinalTypeDescription
1objectRequiredJSON object representing new sender profile properties

Example 

This sample code adds a sender profile to your account:

1var newSP = {
2    "Name" : "SSJS Added Send Profile",
3    "CustomerKey" : "test_send_profile",
4    "Description" : "An SSJS Added Profile",
5    "FromName" : "Andrea Cruz",
6    "FromAddress" : "acruz@example.com"
7};
8var newSenderProfile = SenderProfile.Add(newSP);