SetHeader Method

Set the value of a header field in the current message part.

Syntax

object.SetHeader( Header, Value )

The SetHeader method syntax has the following parts:

Part Description
object An object expression that evaluates to an InternetMail object.
header A string which specifies the name of the header field.
value A string which specifies the value of the header field.

Return Type

Boolean

Remarks

The SetHeader method creates or changes the value of the specified header field in the current message part. If the header does not exist, it will be created with the new value. If the header does exist, its current value will be replaced by the new value.

See Also

MessagePart Property, GetFirstHeader Method, GetHeader Method, GetNextHeader Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.