logo
search
Excel Error Codes

How to Fix Excel Runtime Error 1004: Mail System Failure

Jason MillerJason Miller Oct 22, 2026 868 views

Question details

The user needs to resolve an Excel issue where the application displays Runtime Error 1004, indicating that the mail system has failed and the mail installation needs to be checked.

How to Fix Excel Runtime Error 1004: Mail System Failure
Product
Microsoft Excel
Device & OS
Windows
Scenario
Attempting to send an email or trigger a mail-related VBA macro directly from within Microsoft Excel.
Observed behavior
Excel interrupts the workflow and throws Runtime Error 1004, displaying a prompt that states the mail system has failed and advising the user to check the mail installation.
Before you start

Before proceeding with the repair process, ensure that you have saved all open Excel workbooks and completely closed Microsoft Excel, as well as any other active Office applications.

Solution 1Recommended

Repair the Microsoft Office Installation

Use the built-in Windows repair tool to fix corrupted Microsoft Office components that are causing the mail system failure in Excel.

Runtime Error 1004 related to mail systems usually happens when the Office installation files are damaged or missing components required for email communication. Running a repair operation will restore these necessary files without affecting your personal documents.

1
Open Windows Apps and Features

Press the Windows key, type 'Apps and Features' (or 'Installed apps' on Windows 11) in the search bar, and hit Enter to open your system settings.

2
Locate Microsoft Office

Scroll through the application list to find your Microsoft Office installation. Click on it (or click the three dots next to it) and select 'Modify'.

3
Choose the Repair Option

If you have a Click-to-Run installation, select 'Online Repair' and then click 'Repair'. If you are using an MSI-based installation, select 'Repair' and click 'Continue'.

4
Complete the Repair and Restart

Follow the on-screen instructions to let Windows fix the Office files. Once the process is fully complete, restart your computer if prompted to apply the changes.

Repair the Microsoft Office Installation
Online Repair Requires Internet: Choosing the 'Online Repair' option provides a more comprehensive fix but requires a stable internet connection to download replacement files from Microsoft's servers.
Free Microsoft Office alternative

Experience an Error-Free Spreadsheet Workflow with WPS Office

If you frequently encounter complex VBA errors or installation corruptions in Microsoft Excel, consider switching to WPS Office. It provides a stable, lightweight, and highly compatible spreadsheet experience without the heavy system requirements.

  1. 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer for your operating system.
  2. 2. Install and Launch: Run the installer and follow the simple on-screen prompts. Once finished, launch the WPS Spreadsheet application.
  3. 3. Open Your Spreadsheets: Drag and drop your existing .xlsx files directly into WPS Spreadsheet to continue working seamlessly without any format loss.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Completely free to use with a familiar, easy-to-navigate interface.Stable performance that helps you avoid common Microsoft Office runtime errors.Lightweight installation that takes up significantly less space on your device.
microsoft office alternative - wps office

Frequently Asked Questions

What exactly does Runtime Error 1004 mean in Excel?

Runtime Error 1004 is a generic code in Excel commonly associated with VBA (Visual Basic for Applications) macro failures. When accompanied by the 'Mail System Failure' message, it specifically indicates that Excel cannot communicate with your computer's default email client, often due to corrupted Office files.

Can I fix the mail system failure by setting a default email app?

Yes. Sometimes this error is triggered because Windows does not have a default email application properly assigned. You can try fixing this by navigating to Windows Settings > Apps > Default apps, and explicitly setting a program like Outlook or Windows Mail as your default email client.

Will repairing Microsoft Office delete my personal files or Excel data?

No. Running an Online Repair or a standard Repair from the Windows settings only fixes the application's program files, background services, and registry keys. Your personal spreadsheets, documents, and other user data will remain completely safe and unaffected.