doc.GetFirstItem("Body") fail

session.ConvertMime = True :

If doc.HasItem(“Body”) Then

  Set itemBody = doc.GetFirstItem("Body")

Pls advice why doc.getFirstItem(“Body”) will fail or cause the system to crash for the following type of emails: -

  1. When replying to these type of emails, i get

"You are sending or saving a document which requires more than one character set when it is converted to MIME(internet mail) format. Which character set should be used for the content…

"The following items cannot be sent or saved in MIME (internet mail) format. Do you want to continue… "

  1. When i check the properties of these emails, i get

    “Content-class:um:content-classes:message …” instead

    of "Content-type:multipart/mixed: "

Is anything wrong with the the codes ? Are these the auto-reply emails from receipent ? How do i process them correctly without causing the program to crash ?

Subject: doc.GetFirstItem(“Body”) fail

I know this was posted ages ago.

Since I have just experience something similar I thought I’ll post it here for reference.

When I try to use getfirstitem to get the handle of a body item but a data type Mime Part instead of Richtext. If the object variable is declared as NotesRichTextItem, it generates “Type mis-match error”, once I change the variable type to Variant, it works fine. However this is not consistant on all Mine Part body items. Some of the body items works fine with NotesRichTextItem.

Version 6.5.4