Problem converting .EML files to .MSG files

I am having an issue converting .EML files to .MSG files.

The EML file represents a message with a message attachment.  The message attachment contains an embedded .bmp file.  When opened with Outlook, the bmp file is displayed as part of the body of the message.  

I use MFCMAPI to convert the EML file to an MSG file.  If this MSG file is opened with Outlook, the bmp file is displayed as an attachment to the attached message.  Drag the message into Outlook, open the message and the message appears correctly with the bmp file embedded as part of the body of the message. The message in Outlook has a message class of type IPM.Note.  This is the desired (correct) result.

I then use my program to convert the EML file to an MSG file. In my program I employ the same steps as MFCMAPI to convert from EML to MSG.  This program is run on the same machine using the same converter library that comes with Outlook 2010.  The program creates the storage the same way as MFCMAPI and uses the same parameters. It converts the exact same EML file to an MSG. The MSG file is opened with Outlook 2010, the bmp file appears as an attachment (as it did in the preceding paragraph).  All attributes that using OutlookSpy I can see that the attributes are the same as the attributes of the MSG file created using MFCMAPI (as in the preceding paragraph). I now drag the .MSG file created with my program into Outlook 2010 and get a different result.  The bmp file appears as an attachment to the message rather than embedded in the message. Also, the message class is set to IPM.Document.Outlook.File.msg.14 rather than IPM.Note.

I'm seeking ideas on what might be the cause of my program, that imitates the conversion by MFCMAPI, to produce different results when the .MSG is dragged into Outlook.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

AmitIT ArchitectCommented:
Use this free tool, this is will be enough for your issue.
MrJoeyBlackAuthor Commented:
Thank you for your response Amit. I am not seeking a tool to do this convertion; rather, I'm attempting to find out why my approach of using the same technique as MFCMAPI is not producing the same results. That is, images are embedded in the message when displayed by Outlook 2010.
AmitIT ArchitectCommented:
Ok, that's fine.
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

MrJoeyBlackAuthor Commented:
Well, I found a workaround for the problem of embedded images NOT appearing in the .msg file after being converted to .eml. I convert the .eml to a .msg file, import it into a PST file and then export it out of the PST file. The .msg file now had the embedded images appearing correctly. There is some magic happening under the covers that I don't understand; but, this works out to be an acceptable solution at this time.

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
MrJoeyBlackAuthor Commented:
I'm accepting this solutions because it works for me.
jackson limbozCommented:
esoftTools- -Successfully import EML file to MSG file data using best EML MSG converter tool.
Read More:
lauren fraziesCommented:
Professional tool to convert your emails into different formats. With this tool, email conversion has never been so easier.

*Convert PST files into DBX, EML, MSG, RTF and HTML formats
* Converts EML files into DBX, PST, MSG, RTF and HTML formats

See full details at:
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

From novice to tech pro — start learning today.