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:
http://subdomain%2Ecompany%2Ecom/Documents/folder/subfolder/My%20File.doc
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.