wodSmtpServer ActiveX Control - Add Method
      
 

Description

Adds new header to the collection.


Return Type

A SmtpHeader object.  Reference to new header object.


Syntax

object.Add (Name, [Value])



The Add Method syntax has these parts:

Part Description
object An expression evaluating to an object of type SmtpHeaders.
Name Required. A String value. Specifices name of new header.
Value Optional. A Variant value. String expression that specifies value for 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.