Server.CreateObject("Outlook.Application")
Hi,
I have an ASP page with the following code:
<%
@ Language = VBscript
%>
<% option explicit%>
<!--METADATA
TYPE="TypeLib"
NAME="Microsoft Outlook 11.0 Object Library"
UUID="{00062FFF-0000-0000-C000-000000000046}" VERSION="9.2"
-->
<%
Dim objOutlook
Dim objMail
Set objOutlook = Server.CreateObject("Outlook.Application")
Set objMail = objOutlk.createitem(olMailItem)
Set objMail = nothing
Set objOutlook = nothing
<html>
<head>
<title>Outlook Mail Test</title>
</head>
<body>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<BR>
?????????????????????????????
</body>
</html>
My problem is that the page never finishes loading, it just sort of hangs there. I just had the SysAdmin install Outlook on the web server. It is possible it needs a reboot or something...
Has anyone else gottin this to work ever?
|