Back to product page

Add Method


Adds new header to the collection.

Syntax

  • Basic
object.Add (Name, [Value])
The Add(object,Name,Value) syntax has these parts:
objectAn expression evaluating to an object of type SmtpHdrs
NameRequired. A String value. Specifies Name of new header.
ValueOptional. A Variant value. Specifices Value of new header.

Remarks

Add method will create new Header object and add it to headers collection. This is very useful method when you're creating new mail message, because using Add you will specify and add all the headers that will exist in your future email message.

Platforms

Windows