travisbrown
Technical User
- Dec 31, 2001
- 1,016
I'm trying to launch Outlook from a page using the code below (originally from a post by tsuji, I think)
Error I get is "Automation server can'tcreate the object" on this line: var outlookApp = new ActiveXObject("Outlook.Application");
Can anyone decipher this? Or offer alternatives? It's for a closed environment. All users are OL 2003/IE 6.x/Exchange
Code:
<html>
<head>
<title>Your title</title>
<script type="text/javascript">
function OpenOUT() {
var outlookApp = new ActiveXObject("Outlook.Application");
var nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject="This is my subject";
mailItem.To = "test@test.com";
mailItem.HTMLBody = "This is the body";
mailItem.display (0);
}
</script>
</head>
<body>
<a href="javascript:OpenOUT();">test</a>
</body>
</html>
Error I get is "Automation server can'tcreate the object" on this line: var outlookApp = new ActiveXObject("Outlook.Application");
Can anyone decipher this? Or offer alternatives? It's for a closed environment. All users are OL 2003/IE 6.x/Exchange