Microsoft KB Archive/287125

= PRB: CDONTS Does Not Function with Any Virtual SMTP Site =

Article ID: 287125

Article Last Modified on 3/19/2004

-

APPLIES TO


 * Microsoft Collaboration Data Objects 1.2 for NT Server, when used with:
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q287125



SYMPTOMS
If you attempt to use the CDO for NTS (CDONTS) library on Windows 2000 from a virtual Simple Mail Transfer Protocol (SMTP) site other than the default site, the mail is created in the default SMTP site's pickup folder.



CAUSE
The CDONTS library only uses the SMTPSVC/1 settings in the metabase, which holds the settings for the default SMTP site. CDONTS was designed for use with Microsoft Windows NT 4.0 and Internet Information Server (IIS) version 4.0, and was ported to Windows 2000 for backward compatibility with existing code.



RESOLUTION
To resolve this issue, recode your applications to use CDO for Windows 2000. This object contains a field called cdoSMTPServerPickupDirectory, which can be set to the applicable Virtual SMTP site's mail folder path.



STATUS
This behavior is by design.



Steps to Reproduce Behavior

 * 1) Create and enable a virtual SMTP site.
 * 2) Disable the default SMTP site.
 * 3) Using CDONTS, send a message from a page that is linked to the virtual SMTP site.

You see the .eml file in the pickup folder for the default SMTP site.

For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

286430 HOWTO: Send HTML Formatted Mail Using CDO for Windows 2000 and the Local Pickup Directory

286431 HOWTO: Send HTML Formatted Mail Using CDO for Windows 2000 and a Remote SMTP Service

Keywords: kbprb KB287125

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.