 | | 25/08/2009 11:33 AM | Rob Dobson - MVLWB | MV2002L2-0019 | 25/08/2009 |
| | E-mail as Attachment | /_layouts/IMAGES/EML16.GIF | javascript:function emailDocument(documentUrl)
{
try
{
var protocolsplit = location.href.split('//');
var urlsplit = protocolsplit[1].split('/');
var fileUrl = 'http://' + urlsplit[0] + documentUrl;
var outlook = new ActiveXObject('Outlook.Application');
var outlookMessage = outlook.CreateItem(0);
var outlookAttachment = null;
var outlookAttachments = outlookMessage.Attachments;
outlookAttachment = outlookAttachments.Add(fileUrl);
outlookMessage.Display();
outlookAttachment = null;
outlookAttachments = null;
outlookMessage = null;
outlook = null;
}
catch(e)
{
alert('Please check the following: 1. Microsoft Outlook is installed. 2. In IE the SharePoint Site is trusted. 3. In IE the setting for Initialize and Script ActiveX controls not marked as safe is Enabled in the Trusted zone.');
}
}; emailDocument(currentItemFileUrl); | 0x0 | 0x0 | List | 101 | 350 |
|
|
|