wodPop3 ActiveX Control - Headers Property
      
 

Description

Returns message headers.


Property type

A Pop3Hdrs object.  


Syntax

object.Headers



The Headers Property syntax has these parts:

Part Description
object An expression evaluating to an object of type Pop3Msg.

Remarks

This property gives you access to collection of all headers contained in the message. You can get their total Count, and access each and one of them, when needed.

To access specific header in the collection, you can reference it by its index, or by its name. For example, if you want to find sender of the message you can do it like this:

Message.Headers.Item("From").Value

or

Message.Headers("From").Value

and in most cases you don't have to use Value at all - you can just use

Messages.Headers("From") = "WeOnlyDo!"

and it will work.