Send To->Email a Link doesn’t work

In SharePoint 2007’s Document library, the Send To->Email a Link context menu will open your local email client and put the link of that document in the email body. However, it seems URL encode the whole URL, instead of just the relative path.  So the URL will end up like this:


Basically, the dot (.) in the domain name is also URL encoded (%2E). If you copy and paste it to IE it will still load, but clicking it from Outlook doesn’t work.

To fix it, open CORE.js from  \12\TEMPLATE\LAYOUTS\1033, fine this line:

 fileUrl=escapeProperly(httpRootWithSlash.substr(0, slashLoc))+currentItemUrl;

and replace it with this:

fileUrl=httpRootWithSlash.substr(0, slashLoc)+currentItemUrl;

I found OWS.js (in same folder) also have this. But changing CORE.js alone will fix it. I don’t know what’s the difference between these 2 files.

This entry was posted in Document library and tagged . Bookmark the permalink.

12 Responses to Send To->Email a Link doesn’t work

  1. Pingback: SharePoint "Send To > Email a Link" Fix - Ying Li at

  2. Greg Shell says:

    It looks like WSS 3.0 SP1 takes care of this problem.

  3. Angelo says:

    This problem was first encountered when MOSS came out last Nov, and this issue was resolved via SP1 for MOSS and WSS.

  4. Mario says:

    Calvin, thanks! That did it…

  5. Deepak Mehrotra says:


    In an extended SharePoint website; menu option “Send To -> E-mail a Link” is not being displayed; while rest options are appearing.

    Does anyone have any solution to this?


  6. Deepak Jethani says:

    Cool, this is great stuff

  7. Luigi says:

    I still got this problem in SP2 for WSS3.0/MOSS2007.
    Anyone knows if this is fixed in any CU patch?

  8. Luigi says:

    Think my problem is that the language pack was not updated. Will try that.

  9. Tony says:

    Found a fix. If you right click on the actual document. You will recieve the option to “copy shortcut” which will allow you to paste it into an e-mail or other document. From there, the reciever of the message will be able to open the document and provide edits, then save them.

    If you use the drop down option “send to – e-mail a link” the receiver will only be allowed to read the document you sent.

    Hope this helps. I know it has for me and my users within our company.

  10. Henrik says:

    Service pack for the language pack solved our problem. Now send to e-mail and right klick and copy url gives the same result.

  11. Scott says:

    Does anyone know why the option to sent a link is not avaiable for a folder (only for a document)? In 2003 we the ability to send a link to a folder was possible. Thanks!

  12. Nicole says:

    Tony’s fix also works for a folder.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s