Try the code sample To convert PST files To MHTML format in Java. Download Java API To take your email processing applications To the next level....count = 1; for (MapiMessage msg : inbox. enumerateMapiMessage..."Message" + count + ".mhtml" ; msg. save (mhtmlFilePath, SaveOptions...