Error '8004020A' when you try to send mail with CDOSYS (265527)
The information in this article applies to:
- Microsoft Collaboration Data Objects for Windows 2000
This article was previously published under Q265527 SYMPTOMS
When you attempt to send mail using the Microsoft Collaboration Data Objects for Windows 2000 (CDOSYS) library, the following error message occurs:
8004020A - "The SMTP server name is required, and was not found in the configuration source"
CAUSE
This error message occurs if the Simple Mail Transfer Protocol (SMTP) configuration field namespace is not typed with the correct letter case. All of the namespaces in the CDOSYS configuration object are case sensitive.
RESOLUTION
To resolve this behavior, ensure that the SMTP server configuration field namespace has the correct letter case.
Example:
The following line produces the error message on the Send method of the CDOSYS object:
Fields.Item("http://schemas.microsoft.com/cdo/configuration/SMTPServer") = "myserver"
The following line is the correct syntax for the SMTP server configuration field namespace:
Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "myserver"
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/19/2005 |
---|
Keywords: | kbMsg kbprb KB265527 |
---|
|