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

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.

David.
humbydAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jaime OlivaresSoftware ArchitectCommented:
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: http://www.developerfusion.com/show/3389/

Good luck,
Jaime.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jkrCommented:
OE has a COM API that has been documented recently - check http://msdn.microsoft.com/library/default.asp?url=/library/en-us/outlookexpress/oe/reference/oe_general_ref_entry.asp ("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.
0
Mukunda C PIT ConsultantCommented:
Hi,
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 kavitha.manjunath@wipro.com . Thanks in advance.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.