info.mailtraq.com > Management > Script Functions A-Z > Header() Header()Returns the contents of the specified header field in the current message. If the specified header field occurs more than once in the message, the output string is a concatenation of all the header fields with end of line terminators being substituted by spaces.
Note
The field separator used in RFC2822 headers, ":" (ASCII 58) a colon, must not be quoted when referring to header names.
output := Header( field )
- field
- The field name to extract from the message header
- output
- The contents of the specified header field as a string
Sets the From header in a message dependent on the field contents of its To header If(UserOf(Header("To")) = "webmaster",
SetHeader("From", AddressOf("webmaster"),
SetHeader("From", AddressOf("postmaster")
) |