AMPscript
Add
Remove
Update
Validate Your Server-Side JavaScript using WSProxy
Adds a new sender profile to the account and returns the created object
Add(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | object | Required | JSON object representing new sender profile properties |
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);