SharePoint Document Issues

Fix Invalid URL Errors for Mailto Links in SharePoint Lists

Emma BrownEmma Brown Nov 3, 2026 868 views

Question details

Users need a way to insert clickable email links into a SharePoint list without triggering an invalid URL validation error.

How to Fix Invalid URL Errors for Mailto Links in SharePoint Lists
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Creating or editing a list item that requires a clickable email address link for quick communication.
Observed behavior
SharePoint rejects the 'mailto:email@example.com' string when entered directly into a hyperlink column, displaying an 'Invalid URL' error upon saving.
Before you start

Ensure you have the necessary list editing permissions to modify column settings and apply custom JSON formatting in your SharePoint environment.

Solution 1Recommended

Use JSON Column Formatting to Generate Mailto Links

Instead of using a default Hyperlink column, store the plain email address in a text column and use JSON formatting to convert it into a clickable mailto link.

SharePoint's default hyperlink columns strictly validate URLs and expect standard web protocols like HTTP or HTTPS. By storing just the email address in a standard text field and applying JSON column formatting, you can bypass this validation while still providing users with a functional email link.

1
Create a Text Column

Add a new column to your SharePoint list and set the type to 'Single line of text'. Store only the raw email address (e.g., email@example.com) in this field without the 'mailto:' prefix.

2
Access Column Settings

Click on the header of your newly created text column, select 'Column settings' from the drop-down menu, and click 'Format this column'.

3
Enter Advanced Mode

In the formatting pane that appears on the right side of the screen, click on 'Advanced mode' at the bottom to allow custom JSON input.

4
Apply the JSON Code

Paste a JSON schema that creates an anchor element (`<a>`). Set the `href` attribute to concatenate the string 'mailto:' with your column's current field value (`[$YourColumnName]`).

5
Save and Validate

Click 'Save' at the bottom of the pane. Test the column by clicking the generated email link in a list item to ensure it successfully launches your default email client.

Use JSON Column Formatting to Generate Mailto Links
Adding Subjects and Body Text: You can expand your JSON code to automatically fill the email subject by appending '?subject=Your Subject Here' after the email address in the href property.
Free Microsoft Office alternative

Looking for a Lightweight Office Suite? Try WPS Office

While SharePoint handles your team's lists and intranet pages, you still need a reliable suite for document creation. WPS Office provides a lightweight, highly compatible alternative to Microsoft Office for all your daily word processing, spreadsheet, and presentation needs.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installer for Windows, Mac, or Linux.
  2. 2. Install WPS Office: Run the downloaded installation package and follow the brief on-screen instructions.
  3. 3. Open Your Files: Launch WPS Office to easily open, edit, and save your existing Word, Excel, and PowerPoint documents.
Fully compatible with Microsoft Office formats including DOCX, XLSX, and PPTX.Free and lightweight, consuming minimal system resources.Built-in PDF editing, conversion, and annotation tools.Familiar user interface makes migration from other office suites seamless.
microsoft office alternative - wps office

Frequently Asked Questions

Why does SharePoint reject mailto links in the hyperlink column?

SharePoint's default hyperlink column expects a standard web protocol such as http:// or https://. It does not recognize the 'mailto:' protocol as a valid web address, resulting in the Invalid URL error.

Can I add a CC or BCC field using JSON formatting in SharePoint?

Yes, you can modify the JSON formatting's href property to include '&cc=email@example.com' or '&bcc=email@example.com' immediately following the subject parameter to auto-populate these fields in the email client.

Do I need administrative privileges to apply JSON formatting?

You typically need at least 'Edit' or 'Design' permissions on the SharePoint list to access the Column settings and apply custom JSON formatting rules.