Sharepoint "Link to Document" file in SharePoint with Mailto

Ariane Tellier 1 Reputation point
2021-07-12T17:44:39.007+00:00

I'm using Sharepoint Server 2016.
I'm trying to add a mailto link in my document library.
I'm using "Link to document". In the url, I put name.aspx and when I change the properties, I modify the URL to mailto:something@something .com.
But the redirection does not work. It brings me to a blank page instead of opening the email client.
I'm trying to work around the fact that Sharepoint only allows URL starting with http(s) when inserting a file.
Is there a way to make this work?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,671 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,805 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JoyZ 18,041 Reputation points
    2021-07-13T03:13:49.38+00:00

    @SharepointNewbie ,

    As you said, mailto is not supported by the document url, this is by design in the "Link to Document" content type.

    114071-image.png

    If you want to add mailto link in this page, we suggest you add a content editor web part, then insert the code as shown below:

    <a href="mailto:spfarm@julie">Mail to link</a>   
    

    113950-image.png

    When you click the link, it will open the outlook client and fill in To textbox:

    114063-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.