Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between a .msg file and a .eml file [closed]

What are the difference between a .msg file and a .eml file?

  1. I know that eml is infact a text file while msg is not.
  2. Both can be opened in Outlook.
  3. Outlook allows you to save the email as .msg but I didnt find an option to save as an eml

Is there anything that msg is capable and which eml is not and vice versa?

like image 515
rajesh Avatar asked Apr 26 '13 05:04

rajesh


People also ask

Can EML files be opened?

eml file, use the "Mail" application on your device. Right-click on your . eml file and select "Open With." Then, click the stamp icon that says "Mail." You can open your . eml files in the "Mail" application even if you don't have an account.

Can you convert EML to MSG?

You cannot drag-and-drop your EML files into Outlook and save them as MSG. The only trouble-free solution is using a dedicated EML to MSG converter. It can process hundreds or thousands of files, and you will only need to make a few clicks.

Can Outlook open an EML file?

Even eml-files from Outlook Express can be opened and saved in Outlook.

What is a .EML file used for?

EML, short for electronic mail or email, is a file extension for an email message saved to a file in the Internet Message Format protocol for electronic mail messages. It is the standard format used by Microsoft Outlook Express as well as some other email programs.


1 Answers

MSG is a binary OLE storage file (IStorage). Unlike MIME (EML), it stores all MAPI specific properties that MIME cannot store. The format is documented by Microsoft. You can look inside an MSG file on the IStorage level using a utility like SSViewer. On the MAPI level, you can open/create an MSG file using StgOpenStorage / StgCreateStorageEx and OpenIMsgOnIStg functions. You can see properties stored inside an MSG file in OutlookSpy (click OpenIMsgOnIStg button).

EML files are text files in the MIME format (you can open a file like that in Notepad).

To create an EML file, you can either

  1. Create it explicitly in your code one MIME header/part at a time.

  2. If you are using Extended MAPI in C++ or Delphi, you can use the IConverterSession interface that wraps the native Outlook converter. You can play with it in OutlookSpy - click IConverterSession button on the OutlookSpy toolbar.

  3. You can use Redemption and its RDOMail.SaveAs(..., olRfc822) / SafeMailItem.SaveAs(..., olRfc822) methods.

like image 136
Dmitry Streblechenko Avatar answered Nov 03 '22 23:11

Dmitry Streblechenko