CDO.Message error

When we use the Dynamics AX to send email, sometimes we will run into an CDO.Message issue with error message Method ‘send’ in COM object of class ‘CDO.Message’ returned error code 0x80040211 (<unknown>) which means: <unknown>.

The error codes listed below are really useful when troubleshooting the issue:

Value Remarks
0x80040201 Exception %1 was generated at address %2.
0x80040202

No data source has been opened for the object.

0x80040203

The object does not support this type of data source.

0x80040204

The object does not support the requested property name or namespace.

0x80040205

The object does not support the requested property.

0x80040206

The object is not active. It may have been deleted or it may not have been opened.

0x80040207

The object does not support storing persistent state information for objects.

0x80040208

The requested property or feature, while supported, is not available at this time or in this context.

0x80040209

No default drop directory has been configured for this server.

0x8004020A

The SMTP server name is required, and was not found in the configuration source.

0x8004020B

The NNTP server name is required, and was not found in the configuration source.

0x8004020C

At least one recipient is required, but none were found.

0x8004020D

At least one of the From or Sender fields is required, and neither was found.

0x8004020E

The server rejected the sender address. The server response was: %1

0x8004020F

The server rejected one or more recipient addresses. The server response was: %1

0x80040210

The message could not be posted to the NNTP server. The transport error code was %2. The server response was %1

0x80040211

The message could not be sent to the SMTP server. The transport error code was %2. The server response was %1

0x80040212

The transport lost its connection to the server.

0x80040213

The transport failed to connect to the server.

0x80040214

The Subject, From, and Newsgroup fields are all required, and one or more was not found.

0x80040215

The server rejected the logon attempt due to authentication failure. The server response was: %1

0x80040216

The content type was not valid in this context. For example, the root of an MHTML message must be an HTML document.

0x80040217

The transport was unable to log on to the server.

0x80040218

The requested resource could not be found. The server response was: %1.

0x80040219

Access to the requested resource is denied. The server response was: %1.

0x8004021A

The HTTP request failed.  The server response was: %1.

0x8004021B

This is a multipart body part. It has no content other than the body parts contained within it.

0x8004021C

Multipart body parts must be encoded as 7bit, 8bit, or binary.

0x8004021E

The requested property was not found.

0x80040220

The "SendUsing" configuration value is invalid.

0x80040221

The "PostUsing" configuration value is invalid.

0x80040222

The pickup directory path is required and was not specified.

0x80040223

One or more messages could not be deleted.

0x80040227

The property is read-only.

0x80040228

The property cannot be deleted.

0x80040229

Data  written to the object are inconsistent or invalid.

x8004022A

The requested property is not in the mail header namespace.

0x8004022B

The requested character set is not installed on the computer.

0x8004022C

The ADO stream has not been opened.

0x8004022D

The content properties are missing.

0x8004022E

Content properties XML must be encoded using UTF-8.

0x8004022F

Failed to parse content properties XML.

0x80040230

Failed to convert a property from XML to a requested type.

0x80040231

No directories were specified for resolution.

0x80040232

Failed to resolve against one or more of the specified directories.

0x80040233

Could not find the Sender’s mailbox.

0x80040234

Binding to self is not allowed.

0x80044000

The first argument is invalid.

0x80044001

The second argument is invalid.

0x80044002

The third argument is invalid.

0x80044003

The fourth argument is invalid.

0x80044004

The fifth argument is invalid.

0x800CCE05

The requested body part was not found in this message.

0x800CCE1D

The content encoding type is invalid.

About these ads
This entry was posted in 未分类. Bookmark the permalink.

5 Responses to CDO.Message error

  1. albertpaul68 says:

    Thanks for your article, i not only like but appreciate you on your article. actually i want to write more but this time i am busy on collect the material about testking 350-001 for get knowledge more and more. I also offer you to contribute with me for this.
    have a nice day
    Albert

  2. Reshma says:

    I am looking at an error when sending mail in AX3.0. It works fine in one of the AOS server in Axapta but gives error in the other AOS server when mailserver.sendmail is executed(the same piece of code works fine in the other server). Error is shown as
    “Method ‘SendMail’ in COM object of class ‘Dundas.mailer’ returned error code 0x80004005 (E_FAIL) which means: Invalid From Address”. I give the same address in the other server it works fine.
    What am I missing? I can see that the DSMailer.dll exists in both the server. I have not been able to find any solution so far!!

  3. mikesdawahi says:

    hello everyone. This is my very first visit to this excellent place.
    Thanks for the neat info.
    jay cutler

  4. Francois Korb says:

    Thank you very much for posting this – very useful indeed.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s