Mail Fields Collection

The Mail.Fields collection contains all message body fields. The collection can be used to determine the value of a specific field item, or to iterate through the collection and retrieve a list of all items in the message body. See the Collection Object for standard collection properties and methods.

Syntax

Item = Mail.Fields(key|index)

Parameters
key
The identifier for the item to return.
index
An index offset indicating which item in the list to return. The index starts at 0
Return Value

Returns a variant.

Remarks

The field collection is filled only on incoming message processing, that is, eventually during the Mailing_OnAcceptMail event if the whole message is available, or during the Mailing_OnReceiveMail event.

A body field is composed of a field name, followed by the : or = char, eventually followed by a field value. The body field name is composed of any alphanumeric char, plus the _ . - chars. It can also contains white spaces between other chars. The field value is composed of chars remaining until the end of line or a quoted value (using double quote as quoting char).

Applies To

Mail Object



©2001-2015 eMill. All trademarks property of their owners.