Windows 11 Mail App Showing HTML Code: How to Fix It

While unlikely, Windows Update can prompt this error

by Loredana Harsana
Loredana Harsana
Loredana Harsana
Managing Editor
Loredana is a passionate writer with a keen interest in PC software and technology. She started off writing about mobile phones back when Samsung Galaxy S II was... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • If the Windows 11 Mail app is showing HTML code can sometimes be triggered by the sender using certain outdated email clients.
  • Accessing your email via your web browser quickly resolves the HTML error.
  • Make sure you install all the Windows updates that may offer a fix for this problem.

Fix Windows 11 OS errors with Fortect:
This tool repairs common computer errors by replacing the problematic system files with the initial working versions. It also keeps you away from system errors, BSoDs, and repairs damages made by malware and viruses. Fix PC issues and remove viruses damage now in 3 easy steps:

  1. Download and Install Fortect on your PC
  2. Launch the tool and Start scanning to find broken files that are causing the problems
  3. Right-click on Start Repair to fix issues affecting your computer’s security and performance
  • Fortect has been downloaded by 0 readers this month.

While using Windows mail, your emails could suddenly start showing as HTML code. When this happens, reading your emails becomes a bit problematic. If your Windows mail app displays HTML code on Windows 11, this article will provide steps to help you resolve the error.

In this article

Why is the Windows Mail app showing HTML code?

Here are some of the common reasons why the Windows Mail app is showing HTML code:

  • Third-party antivirus software – Sometimes, third-party antivirus software installed on your PC can cause the mail app to show HTML code.
  • Changing text format – If the sender of the mail changes the official text format before sending the mail, it can cause the mail app to show HTML code.
  • Corrupt Mail app – In some cases, a corrupt Mail application might cause received mails to display as HTML code. If that’s the case, you can try accessing Windows mail service from your web browser.
  • Problematic Windows update – If you noticed this error with the mail app after updating Windows, the update likely caused that problem, and you should uninstall it.

Now that we know what the probable causes are, let’s solve the problem by using the solutions below.

How do I fix the Mail app if it’s showing HTML code on Windows 11?

Before we proceed with more advanced solutions, here are a couple of quick fixes you can apply:

If those steps couldn’t resolve the error, here are a couple of advanced fixes you can try.

1. Repair the Mail application

  1. Press the Windows key + I to open the Settings app.
  2. Click on Apps and select Installed apps.
  3. Locate the Mail and Calendar app from the list of apps, click on the More icon, and click on Advanced Options.
  4. Select Repair. If the repair option isn’t available, select Reset.
  5. Close the Settings app, restart your PC, and relaunch Windows Mail.

2. Disable the antivirus software

  1. Press the Windows key + S, type in Windows Security, and launch it.
  2. Navigate to the Virus & Threat Protection tab. Under the Virus and Threat Protection settings, select Manage Settings.
  3. In the next window, click on the toggle button to switch Real Time Protection to Off.

This will prevent Windows Defender from operating. Check if Windows Mail is displaying the messages correctly. If so, you should think about switching to a better antivirus for Windows 11 that doesn’t interfere with your apps.

In case you’re using a third-party antivirus, disable it from its menu and see if that changes how Windows Mail is displaying the messages.

3. Roll back the Windows update

  1. Press the Windows key + I to open the Settings app.
  2. Click on Windows Update and select Update History.
  3. Select Uninstall Updates.
  4. Locate the most recently installed update from the list and click Uninstall to remove it.

Expert tip:


Some PC issues are hard to tackle, especially when it comes to missing or corrupted system files and repositories of your Windows.
Be sure to use a dedicated tool, such as Fortect, which will scan and replace your broken files with their fresh versions from its repository.

If you noticed the HTML mail error after running a Windows update, rolling back the update is the best way to resolve the error. Here is a detailed guide showing the best ways to remove a Windows Update.

4. Access your email on your web browser

  1. Launch your preferred browser and go to the Outlook online email client.
  2. Sign-in with your credentials to read your received mails.

Accessing your email via your web browser isn’t a traditional fix but it’s one of the quickest ways to get around the HTML raw data error in Windows.

Of course, instead of using the Outlook web app, you may go directly to the website of your email provider like Gmail, ProtonMail, etc.

5. Reinstall Windows Mail

  1. Press the Windows key + I to open the Settings app.
  2. Click on Apps and select Installed apps.
  3. Locate Windows Mail & Calendar in the list of applications, click on the tab, and select Uninstall.
  4. Wait for the app to be completely removed and close the Settings app.
  5. Press the Windows key + S, type in Microsoft Store, and hit Enter.
  6. Type in Mail and Calendar, from the search results, click Get in Store app and select Install.

Once the app is installed, sign into Windows Mail using your correct credentials. Reinstalling the Windows Mail app should revert the app to its default configurations.

Troubleshooting the HTML error in Windows Mail is pretty difficult. Usually, most users opt to access their email via their web browsers when they can’t resolve the error.

If the issue persists, we recommend consulting our list of the best email clients for Windows 11 and selecting a better one.

If you’ve got alternative solutions that helped you fix the mail app showing HTML, you can let us know in the comments below.

Still experiencing issues?


If the above suggestions have not solved your problem, your computer may experience more severe Windows troubles. We suggest choosing an all-in-one solution like Fortect to fix problems efficiently. After installation, just click the View&Fix button and then press Start Repair.

This article covers:Topics: