SharePoint Document Issues

How to Fix Invalid Mailto URL Errors in SharePoint Text Web Part

Camila MilosovichCamila Milosovich Oct 29, 2026 869 views

Question details

The user is unable to add functioning mailto links inside a SharePoint Text web part due to an invalid URL error.

Product
SharePoint
Device & OS
not provided
Scenario
Adding an email hyperlink (mailto) to text within a SharePoint page's Text web part.
Observed behavior
The mailto link triggers an 'invalid URL' error in the Text web part, even though identical links work perfectly in the Quick Links web part.
Before you start

Ensure you have page editing permissions on your SharePoint site and verify the exact spelling of the email address you intend to link.

Solution 1Recommended

Recreate the Mailto Hyperlink Using Full Format

Recreating the hyperlink with the correct syntax often clears formatting glitches and validation errors in the Text web part.

SharePoint's Text web part has a strict URL validation mechanism. Sometimes, copying and pasting a link can carry over hidden formatting that triggers an invalid URL error. Manually typing the full format usually resolves this.

1
Edit the SharePoint Page

Navigate to the page where the error occurs and click the 'Edit' button in the top right corner.

2
Add a New Text Web Part

Hover over the page canvas to reveal the '+' icon, click it, and select 'Text' from the web part menu.

3
Apply the Hyperlink

Type the display text for your email link, highlight it, click the Hyperlink icon in the toolbar, and manually type the full address (e.g., mailto:user@example.com).

4
Save and Test

Click 'Republish' or 'Save as draft' to apply the changes, then click the new link to ensure your default email client opens correctly.

Formatting Tip: Ensure there are no spaces between 'mailto:' and the email address.
Free Microsoft Office alternative

A Seamless and Lightweight Alternative to Microsoft Office

If you frequently encounter formatting issues or complex configurations with Microsoft tools, consider trying WPS Office for your desktop and mobile document tasks. It provides a lightweight, highly compatible environment for editing all your essential files.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package tailored to your operating system.
  2. 2. Install the Software: Run the downloaded installer and follow the quick setup guide to deploy the lightweight suite on your device.
  3. 3. Open Your Documents: Double-click any existing Microsoft Office file to open, edit, and save it seamlessly within the WPS Office environment.
Fully compatible with standard Microsoft Word, Excel, and PowerPoint file formats.Free to download and use with a highly intuitive user interface.Lightweight software that runs smoothly without heavy system requirements.All-in-one suite covering Writer, Spreadsheet, Presentation, and PDF tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why do mailto links work in Quick Links but not the Text web part?

The Quick Links web part and the Text web part use different internal rendering engines and validation rules in SharePoint. The Text web part has stricter URL validation which can sometimes mistakenly flag properly formatted mailto links as invalid if hidden characters are present.

What is the correct syntax for a SharePoint mailto link?

A standard mailto link should start exactly with 'mailto:' followed immediately by the target email address, with no spaces included (e.g., mailto:support@example.com).

Can I add a subject line to my mailto link in SharePoint?

Yes, you can append a subject line by adding '?subject=' right after the email address, such as 'mailto:user@example.com?subject=Inquiry'. However, if you are currently experiencing invalid URL errors, it is best to test the basic mailto format first before adding subjects.