Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CreateObject("MAPI.Session") Error in ASP


Message #1 by "Jin Yao" <3ground@s...> on Mon, 30 Apr 2001 04:21:59
I have to use cdo(not cdonts) to send email in asp.

The steps are:

1. regsvr32 cdo.dll (cdo.dll is copied from another computer)

2. write the statement: Set obj=CreateObject("MAPI.Session") in asp.

3. as debugging this statement, a dialog shows: "Request Component Pending"



But when I use this statement in a simple vb exe program, it's ok. 

Who can tell me how to use cdo in asp? The cdo version I used is 1.21. 

My OS is win2000, and setup outlook 2000, outlook express 5 in my pc. 







Message #2 by "Michiel van Otegem" <michiel_lists@a...> on Mon, 30 Apr 2001 10:51:20 +0200
You could start by sending the code along...

Be aware that ASP runs under a local machine account called

IUSR_machinename. If exchange is running on a different machine, your ASP

application will have a hard time to connect.



---

Michiel van Otegem

ASP/XML Teacher

off-list email:  michiel@a...



ASPNL.com / IT Composer

www:    http://www.aspnl.com

---

----- Original Message -----

From: "Jin Yao" <3ground@s...>

To: "ASP CDO" <asp_cdo@p...>

Sent: Monday, April 30, 2001 4:21 AM

Subject: [asp_cdo] CreateObject("MAPI.Session") Error in ASP





> I have to use cdo(not cdonts) to send email in asp.

> The steps are:

> 1. regsvr32 cdo.dll (cdo.dll is copied from another computer)

> 2. write the statement: Set obj=CreateObject("MAPI.Session") in asp.

> 3. as debugging this statement, a dialog shows: "Request Component

Pending"

>

> But when I use this statement in a simple vb exe program, it's ok.

> Who can tell me how to use cdo in asp? The cdo version I used is 1.21.

> My OS is win2000, and setup outlook 2000, outlook express 5 in my pc.

>

>

>

>

Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Mon, 30 Apr 2001 11:02:57 +0100
Basic Authentication must be used if the exchange server is a different

machine



-----Original Message-----

From: Michiel van Otegem [mailto:michiel_lists@a...]

Sent: Monday, April 30, 2001 9:51 AM

To: ASP CDO

Subject: [asp_cdo] Re: CreateObject("MAPI.Session") Error in ASP





You could start by sending the code along...

Be aware that ASP runs under a local machine account called

IUSR_machinename. If exchange is running on a different machine, your ASP

application will have a hard time to connect.



---

Michiel van Otegem

ASP/XML Teacher

off-list email:  michiel@a...



ASPNL.com / IT Composer

www:    http://www.aspnl.com

---

----- Original Message -----

From: "Jin Yao" <3ground@s...>

To: "ASP CDO" <asp_cdo@p...>

Sent: Monday, April 30, 2001 4:21 AM

Subject: [asp_cdo] CreateObject("MAPI.Session") Error in ASP





> I have to use cdo(not cdonts) to send email in asp.

> The steps are:

> 1. regsvr32 cdo.dll (cdo.dll is copied from another computer)

> 2. write the statement: Set obj=CreateObject("MAPI.Session") in asp.

> 3. as debugging this statement, a dialog shows: "Request Component

Pending"

>

> But when I use this statement in a simple vb exe program, it's ok.

> Who can tell me how to use cdo in asp? The cdo version I used is 1.21.

> My OS is win2000, and setup outlook 2000, outlook express 5 in my pc.




  Return to Index