EmailHeaders
Class EmailHeaders

Method PrototypeDescription

Sub AppendHeader( name As String, value As String)add a new header to the EmailMessage and set its value

Function CommaSeparatedValues( name As String ) As Stringget the named header as a comma separated string

Sub Constructor()initialize to default options

Function Count() As Integerget the number of headers

Sub Delete( name As String )remove the specified header

Sub DeleteAllHeaders()remove all headers

Function Name( index As Integer ) As Stringget the name of the header at the specified index

Function NameCount( name As String ) As Integerget the number of headers with the specified name

Sub SetHeader( name As String, value As String)set the name and value of a header.

Function Source() As Stringget the raw source of the header as a string

Function Value( name As String, index As Integer ) As Stringget the value of specified header as a string


The EmailHeader class allows you to set and modify an EmailMessage's header values. See also InternetHeaders. Common uses for EmailHeaders include identifying the email program and specifying the priority level. Refer to RFC 2822 for more information.