wodImapServer ActiveX Component - Add Method
      
 

Description

Adds new messate to the collection.


Return Type

An ImapMessage object.  


Syntax

object.Add ([Message])



The Add Method syntax has these parts:

Part Description
object An expression evaluating to an object of type ImapMessages.
Message Optional. A Variant value. String expression that holds full path to a file on disk, or ImapMessage reference to already created message.

Remarks
Add method will add new message to collection of the messages in the folder. You cannot use Add method to add new parts of existing message.

If Message argument is not specified, empty message is created. We suggest that immediately after using Add method, you also set message's Filename and UID properties, probably from some database where you keep that information.

NOTE: It is possible for Add method to use temporary file in temporary folder. There can be problem in ASP environments, where temporary folder is for IUSR_NAME account is reported as 'C:\Documents and settings\Default User\'. If you use this method in such environment, you *must* allow IUSR_NAME to access and write to this directory.