Microsoft KB Archive/321513

= CDOEX cdoSaveSentItems configuration constant is ignored on Exchange Server 2003 and on Exchange 2000 Server =

Article ID: 321513

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Enterprise Edition
 * Microsoft Exchange Server 2003 Standard Edition
 * Microsoft Exchange 2000 Server Standard Edition
 * Collaboration Data Objects for Exchange 2000

-



This article was previously published under Q321513



SYMPTOMS
When you set the value of the http://schemas.microsoft.com/cdo/configuration/savesentitems configuration value or its equivalent named constant, cdoSaveSentItems, to False in Collaboration Data Objects for Exchange 2000 (CDOEX), the configuration is ignored on Microsoft Exchange Server 2003 and on Microsoft Exchange 2000 Server. You expect that if you set this value to False, a user can send an e-mail message through code and not save the e-mail message to the Sent Items folder.



CAUSE
The e-mail message is always saved to the Sent Items folder. The Microsoft Developer Network (MSDN) documentation incorrectly states that you can determine whether an e-mail message is saved to the Sent Items folder when you set this field to False.



STATUS
This behavior is by design. The MSDN documentation will be updated in a future release.



Steps to reproduce the behavior
Note The following code must run on a computer that is running Exchange Server 2003 or Exchange 2000 Server.  Start Microsoft Visual Basic 6.0. Then, create a new Standard EXE project. Add a reference to the Microsoft CDO for Exchange 2000 Library. Add a CommandButton control to the form.  Double-click the button, and then replace the default code with the following code. Private Sub Command1_Click Dim oMsg As CDO.Message Set oMsg = New CDO.Message 'Exchange oMsg.Configuration.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/sendusing&quot;) = 3 oMsg.Configuration.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/savesentitems&quot;) = False oMsg.Configuration.Fields.Update 'Change this address to the test mailbox address. oMsg.To = &quot;to@test.com&quot; 'Change this to your address. oMsg.From = &quot;from@test.com&quot; oMsg.Subject = &quot;savesentitems Test!!&quot; oMsg.HTMLBody = &quot;Look in the sent items folder!!!!&quot; oMsg.Send Set oMsg = Nothing End Sub  Change the &quot;To&quot; address and the &quot;From&quot; address in the code. Run the code.</li> Click the button on the form.</li> Verify that the new test e-mail message appears in the mailbox. Then, verify that the e-mail message appears in the Sent Items folder.</li></ol>

Keywords: kbprb KB321513

-

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

© Microsoft Corporation. All rights reserved.