I want to save each email items into files

  • Thread starter Thread starter Kenny
  • Start date Start date
K

Kenny

Here is my pseudo-like code.

--------------------------------------------
if olItem.BodyFormat = olHtml then
olItem.SaveAs olItem.entryID, olHtml
elseif olItem.BodyFormat = olPlainText then
olItem.SaveAs olItem.entryID, olPainText
elseif olItem.BodyFormat = olMSG then
olItem.SaveAs olItem.entryID, olMSG
....
...

---------------------------------------------

I first checked email's Bodyformat property and
SaveAs into appropriate file type.
However, Bodyformat sometime returns wrong type so that
I can't save that email.

Is there any other way to see correct email type so that
I save them all successfully.

Thank you.
 
Try using Inspector.EditorType instead of BodyFormat. YOu will probably also
want to append the appropriate file extension (htm, txt, msg) to the file
name.
 
Back
Top