Skip to content

GetHeader

Retrieves the value(s) of a header from the message.

1
myMessage.GetHeader(name: string):Array<string>

Parameters

string name
    The name of the header.

Returns

An array of header values associated with the specified name.

Examples

Skip automatic replies in an incoming e-mail

1
2
3
4
5
var message = $Messages.ParseEML($Xml.Evaluate('MailFile'));

if (message.GetHeader('Auto-Submitted').length > 0) {
    return;
}