Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2004, 08:10 AM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

 
Old September 4th, 2004, 01:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Take a look at this and see if that helps.

Send Outlook message from script

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Excel, outlook createobject Willie Johnson Jr Excel VBA 0 March 10th, 2006 05:11 AM
How To use server.createobject in c# ranakdinesh C# 0 November 4th, 2005 08:18 AM
error when createobject excel.application vovo Classic ASP Professional 0 February 3rd, 2005 12:29 AM
use CreateObject("word.application") in ASP Andraw Classic ASP Basics 10 January 14th, 2005 08:11 PM
Server.CreateObject Failed ckwizard77 Classic ASP Components 2 October 23rd, 2004 09:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.