Skip Navigation

Programmatic Marketing Content

control-j is the search shortcutj
Introduction to Programmatic Marketing Content
AMPscript
Guide Template Language
Server-Side JavaScript
Server-Side JavaScript Syntax Guide
Account Functions
AccountUser Functions
Content Area Functions
Data Extension Functions
DateTime Functions
Delivery Profile Functions
Email Functions
Events Functions
Filter Defintion Functons
Folder Functions
HTTP Functions
List Functions
Portfolio Functions
Query Definition Functions
Recipient Functions
Send Classification Functions
Send Functions
Sender Profile Functions
Subscriber Functions
Template Functions
Triggered Send Functions
Utilities Functions
Application Utility Functions
Base64 Utility Functions
Content Area Utility Functions
HTTPHeader Object Utility Functions
GetValue
Remove
SetValue
Impression Region Utility Functions
Request Object Utility Functions
String Utility Functions
Variable Utility Functions
Platform Functions
Server-Side JavaScript Sample Code
Use Server-Side JavaScript with AMPscript
Use Server-Side Javascript via WSProxy with the SOAP API
Server-Side JavaScript/Server-Side JavaScript Syntax Guide/Utilities Functions/HTTPHeader Object Utility Functions/SetValue

SetValue

Overview

Sets value of an HTTP header

Syntax

SetValue(1, 2)

Function Properties

Ordinal Type Description
1 string Required Header name
2 string Required Value to assign to header

Example

This sample code sets the From address in the HTTP header:

HTTPHeader.SetValue("From","aruiz@example.com");
Last Updated: Jun 8, 2021

Salesforce logo