How to Remove the Security Error when Downloading ‘.msg’ Email Attachments from SharePoint?

The web is not a safe place and to make it safe for its users, many browsers have blocked downloading and execution of different file extensions. The same is the case with the .msg extensions as some browsers like MS Edge do not consider files with this extension as safe and have blocked their download process. This blocking can lead to the security error under discussion with the following message:

Security Error When Downloading .msg Email Attachments Stored in SharePoint

The .msg file issue is mainly caused by the browser’s (like MS Edge) security:

  • Microsoft Edge Security: Browsers tend to block many file extensions from downloading to safeguard your PC from harmful web content and keeping the same in mind, many browser developers (including Microsoft) have added .msg file extension in the blocked files extensions. This security feature stops a user from downloading the .msg extension.

Try to Download the .msg File with Another Browser

If you are encountering the download security error when trying to download .msg email attachments in a specific browser, then using another browser may let you download the .msg file from SharePoint.

  1. Open the SharePoint website in the problematic browser (e.g., MS Edge) and try to download the attachments (you are having the issue with).
  2. When you encounter the issue, copy the URL from the address bar of the Edge browser and then launch another browser (if you do not have any other web browser, then you may install another browser).
  3. Now paste the copied URL in the new browser window’s address bar (you may have to log in using your SharePoint credentials) and hit the Enter key.
  4. Afterward, check if the .msg file is downloaded without the security error.

Edit the System’s Registry to Bypass the Security Error

If you are one of those users who are bound to use the Windows built-in browser (like Edge), then you may edit your system’s registry to bypass the MS Edge security error by excluding the .msg file extension from the blocked list of the Edge browser.

Warning:

Move forward at your own risk as editing the system’s registry can be a risky job if not done properly and you may cause undying damage to your data/system.

  1. Firstly, to be safe, create a backup of your PC’s registry.
  2. Now click Windows, key-in RegEdit, right-click on the result of the Registry Editor, and select Run as Administrator.
    Open Registry Editor as Administrator
  3. Now navigate to the following path:
    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft
  4. Then, in the left pane, right-click on the Microsoft key and select New>> Key.
    Create a New Key under Microsoft Registry Key
  5. Now enter the name of the key as Edge (if the Edge key is already present, then create the following key under it) and create another key under Edge with the following name:
    ExemptDomainFileTypePairsFromFileTypeDownloadWarnings
    Create a New String Value Under the ExemptDomainFileTypePairsFromFileTypeDownloadWarnings Registry Key
  6. Again, right-click on the above key and select New>> String Value.
  7. Now enter the name of the String Value as 1 and double-click on it.
  8. Then set its value as following (replace the https://sharepoint.com with the website you are having issues with):
    {"file_extension": "msg", "domains": ["https://sharepoint.com"]}
    Set the String Name to 1 and its Value to the Problematic Website
  9. To allow the .msg extension from another website, create String Value as 2 and set its value accordingly.
  10. If you want to allow .msg extension from every website, then you may set the String Value as following (highly not recommended):
    {"file_extension": "msg", "domains": ["*"]}
  11. Then close the Editor’s window and restart your PC.
  12. Upon reboot, hopefully, you can download the .msg email attachments without the security error.
Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Expert Tip

How to Remove the Security Error when Downloading ‘.msg’ Email Attachments from SharePoint?

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested