"Error (0x8004011D) The server is not available" error message if you use CDO to programmatically create and send a message when you log on by using a profile that uses the Outlook 2002 Connector (840835)
The information in this article applies to:
- Microsoft Outlook 2002 Connector
SYMPTOMSWhen you start Microsoft Outlook 2002 by using a profile that uses the Microsoft Outlook 2002 Connector to log on to an IBM Lotus Domino Release 5 server, and you use Collaboration Data Objects (CDO) to programmatically create and send a message, you may find that the message is not sent to the recipient. The message remains in the Outbox folder in Outlook 2002. If you open the message in the Outbox folder, the Send button of the message is still available. If you click Send to send the message, you receive the following error message in the Send/Receive dialog box:
Task: "Microsoft Outlook 2002 Connector (for Lotus Domino server) -
Sending and Receiving" reported error (0x8004011D) "The server is not
available. Contact your administrator if this condition persists." You do not experience these symptoms if you start Outlook by using a profile that logs on to Microsoft Exchange Server, and if you use CDO to programmatically create and send a message. CAUSEThis problem occurs because the Outlook 2002 Connector assumes that the value of the PR_MESSAGE_CLASS property of the message is case-sensitive and is set to "IPM.Note" (with the quotation marks). By default, when you create a message by using CDO, the PR_MESSAGE_CLASS property of the message is set to "IPM.NOTE" (with the quotation marks) and is not set to "IPM.Note" (with the quotation marks). If the Outlook 2002 Connector incorrectly processes the value of the PR_MESSAGE_CLASS property of the message, the message type cannot be determined, and you experience the symptoms that are mentioned in the "Symptoms" section. For example, this issue occurs if you use the following sample code to programmatically send mail to the current user who is logged on to a Lotus Domino release 5 server by using Outlook 2002 Connector: Set oSession = CreateObject("MAPI.Session")
oSession.Logon , , True, True
Set oOutbox = oSession.Outbox
Set oMessage = oOutbox.Messages.Add
oMessage.Subject = "CDO New Test at: " & Now
oMessage.Text = "This is a test"
Set objRecipient = oMessage.Recipients.Add
objRecipient.Name = oSession.CurrentUser
Msgbox oSession.CurrentUser
objRecipient.Resolve
oMessage.Send
Set objRecipient = Nothing
set oMessage = Nothing
Set oOutbox = Nothing
oSession.Logoff
set oSession= nothing
Msgbox "Done" WORKAROUNDTo work around this problem, when you send a message by using CDO and MAPI, set the PR_MESSAGE_CLASS property of the message to "IPM.Note" (with the quotation marks). In the example that is mentioned in the "Cause" section, insert the following line before the "oMessage.Send" line:
oMessage.Fields(&H001A001E).Value = "IPM.Note" STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 6/8/2005 |
---|
Keywords: | kbnofix kbBug KB840835 kbAudITPRO kbAudEndUser |
---|
|