Programically convert a EML format mail message file to a MSG format disk file.

Posted on 2004-11-30
Last Modified: 2013-12-03
Good day:

I am looking for a way to programically convert an message stored as a EML file to a MSG format file.

My application accepts journalled messages from an Exchange Server through an SMTP server. The message are spooled in MIME format and I would like to convert them to MSG so they can be viewed in Outlook, not Outlook Express.

Does anybody have any code to convert from EML to MSG (in VC++)?

Conversely, if I can get Outlook to display the EML messages directly (similar to how it works with MSG), then I would not have to convert the message.

Thanks for your help.

Question by:humbyd
    LVL 55

    Accepted Solution

    Hi humbyd,
    EML is the Outlook Express file format, not recognized directly by Outlook. But you can export from Outlook Express to Outlook .msg format.
    This library can read .EML files:

    Good luck,
    LVL 86

    Assisted Solution

    OE has a COM API that has been documented recently - check ("Outlook Express Miscellaneous Reference"). This API allows you to automate OE in a similar manner to Outlook, so you will be able to display EML files and even convert them.

    Expert Comment

    I need to read an eml file and put the same into user's mailbox. Can anyone provide me the code for the same?
    U can send the code to . Thanks in advance.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
    With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now