Creating the New Classified Ad Form

These are the main steps to follow for creating a form with CDO:

    To create a form using CDO
  1. Using VBScript, create a message with the Add method of the Messages collection object. This call creates a standard message of the default message class IPM.Note, which contains the basic components needed to send a message, including the To, From, Received, and Subject fields and the message body.
  2. You can now customize the standard message by adding custom fields to provide the special functionality the form offers.
  3. Set the message class for the form and save the name of this message class in the Type property of the Message object.
  4. If the form is to be used by Microsoft Outlook Web Access, save the form's .asp files to the appropriate location on disk.
  5. If the form is to be used by the Microsoft Exchange Client — in addition to or instead of Web use — use the Microsoft Exchange Forms Manager to add the new form's message class to the Microsoft Exchange Server form library. For information on form libraries, see the MAPI Programmer's Reference.

These programming actions are discussed in more detail in the following sections.