MailMill COM 1.0 Documentation

Headers Mail Property:
Returns a reference to a MailCollection object that contains message header fields.
Syntax:
[C++]
HRESULT get_Headers(IMailCollection **ppVal);
[VB]
Property Headers As MailCollection
Remark:
The Headers collection allows access to message header fields, including some of the Mail properties. Use the MailCollection methods to add, modify or remove either standard header fields or private header fields.
Header Field Summary:
Field name Mail property Remark
Bcc Bccs.Value Optional. Removed from the sent message but saved on the disk when using the Save method.
CC Ccs.Value Optional
Date   Date value initialized with the current time. MailMill will format this field using the standard Internet date format.
From From Required
Message-ID   String value initialized with a unique identifier.
X-Priority Priority Optional
Reply-To ReplyTo.Value Optional
Subject Subject Recommended
To Tos.Value Recommended
User-Agent   String value initialized with the MailMill user-agent string.

Example:
[VB]
Dim oMail As New Mail
oMail.Headers("To") = "Marie <marie@emilltest.com>, ""Sales Department"" <sales@emilltest.com>"
oMail.Headers("Date") = Now()
oMail.Headers("X-Private-Field") = GetPrivateFieldString()
See also:
MailMill Component | Mail Object

 

Copyright © Active+ Software 2005 - All rights reserved