다음을 통해 공유


CdoPostUsing Enum

Topic Last Modified: 2006-06-29

The CdoPostUsing enumeration is used when setting the postusing Field to specify how a message should be posted. Posting can occur through the network by using the Network News Transfer Protocol (NNTP) protocol, by writing the message to the local NNTP service drop directory, if available, or through a computer running Microsoft® Exchange Server. The postusing field defaults to cdoPostUsingPickup if there is an NNTP service installed on the local computer.

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Values

Name Value Description

cdoPostUsingPickup

1

Post the message by using the NNTP service pickup directory.

cdoPostUsingPort

2

Post the message by using the network (NNTP protocol over the network).

cdoPostUsingExchange (CDOEX only)

3

Post the message by using Exchange.

Remarks

If you specify the value cdoPostUsingPort, you will either need the default values provided by the default Microsoft Outlook® Express configuration on the local computer, or you will need to set the fields manually. These fields include:

If you specify cdoPostUsingExchange, you specify the following properties in the Configuration object:

Field Description

activeconnection Field

A Microsoft ActiveX® Data Objects (ADO) Connection object bound to the user's mailbox store. If this connection is not specified, a new connection is created to send the message. If the sending object (for example, a Message object) is currently bound to an item, the binding is replaced when the new connection is created. If a Connection object is specified in this property, the current object's binding is not changed, and the object uses this connection to send the message.

mailboxurl Field

The URL to the user's mailbox base folder.

postusername Field

The user principal name (UPN) or URL in the form user@domain.tld or mailto:user@domain.tld. You can also specify the user using the Microsoft Windows NT® 4.0 format, such as DOMAIN\User. If the user's mailbox URL is not specified in the https://schemas.microsoft.com/cdo/configuration/mailboxurl configuration property, the Active Directory® directory service is searched by using this UPN.

postpassword Field

The user's password, used to authenticate with remote servers when sending messages, and to authenticate with Active Directory when searching for user information.

If you specify cdoPostUsingExchange, you specify the following properties in the Message object:

Field Description

hardlinklist Field

The URLs to folders in which to post the message. If this option is set, the Newsgroups property is ignored. Currently, only one URL can be specified in this multivalued property.

See https://schemas.microsoft.com/cdo/configuration/ Namespace fields for more information.