E-mail Messages Generated by CDONTS Go Directly to Badmail Folder (319285)



The information in this article applies to:

  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Server 5.0
  • Collaboration Data Objects (CDO) for NTS 1.2

This article was previously published under Q319285
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

SYMPTOMS

When you use Collaboration Data Objects for Windows NT Server (CDONTS) to create e-mail messages from a component or components in Active Server Pages (ASP), the e-mail messages that CDONTS generates go directly to the Badmail folder. The e-mail messages do not queue up in the Queue folder, and no records appear in the SMTP log.

The .bdr file in the Badmail folder with the .bad file may contain the following information:
...	Error is processing file in pickup directory.
...	The specific error code was 0xC00402CE.
				

CAUSE

The "From: ..." line does not appear in the header section of these e-mail messages. A message must contain at least three parts: From, To, and Message Data.

RESOLUTION

To correct this behavior, modify the code to add the .From attribute before you send the e-mail.

Modification Type:MinorLast Reviewed:6/23/2005
Keywords:kbprb KB319285 kbAudDeveloper