Share via

error 800CCE05 The requested body part was not found in this message. Access VBA CDO

Anonymous
2017-06-06T12:41:07+00:00

Hi, I have a small project on MS Access

It uses the CDO library to send e-mails

The code works until yesterday.

But since yesterday it began to show an error (800CCE05 The requested body part was not found in this message)

I'm trying to use CDO on win7, win8 and win10 do not work, but the same code on winxp works without errors.

Dim iCfg As Object

Dim iMsg As New CDO.Message

Set iCfg = CreateObject("CDO.Configuration")

With iCfg.Fields

           .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

           .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

           .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.server.com"

           .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

           .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "MyUserName"

           .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "MyPassordNot"

           .Item("http://schemas.microsoft.com/cdo/configuration/sendemailaddress") = "******@server.com"

.Update

End With

'Set iMsg = CreateObject("CDO.Message")

With iMsg

     .Configuration = iCfg

     .Subject = "Subject"                                 <=== Show Error

     .To = "******@address.com"

    .TextBody = "MessageBody"

    .AddAttachment "FullPathToAttachment"

    .Send

End With

Set iMsg = Nothing

Set iCfg = Nothing

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2017-10-26T16:56:39+00:00

    Got the exact problem in terminal server connection recently.  Finally found Windows Input Language default must be "English (United States)", look like CDO only accept charset from this language.  Otherwise the exact error appear.  Confirmed issue resolved in Windows 8 & 10.  This setting will save in terminal server user profile.

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-12-07T08:48:25+00:00

    We have seen a similar issues (800CCE05 The requested body part was not found in this message errors when using CDO).

    We have seen the problem on Windows 10 when the user has chosen one display language but made changes to "regional formatting".

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments