Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: using CDONTS with IMC


Message #1 by "Richard Lasker" <rlasker3@h...> on Tue, 16 Jan 2001 20:45:46 -0000
I am attempting to send emails using the IMC with exchange and CDONTS. I

used a very basic script with the following text.

<%

Dim objMailer



Set objMailer = Server.CreateObject("CDONTS.NewMail")

objMailer.Send "rlasker3@h...", "leads@g...", _

				"This is the subject", _

				"This is the mail message"

Set objMailer = Nothing



After running the script I get the following error:



error '80070003' 

The system cannot find the path specified. 



/mail.asp, line 5 



I checked the registry and found that the

HKLM/SOFTWARE/Microsoft/Exchange/MSExchange/Active Messaging is set to

value 1 (which the WROX P2P ASP 3.0 book page 972 said it should be set

to)



This should direct CDONTS to the proper path for the outbox folder but

apparently it is not doing it.



Any help?

Message #2 by "Curtis F. Barnett" <cfb@s...> on Tue, 16 Jan 2001 16:39:19 -0600
Separate your addresses with a semi-colon (;)as in:

objMailer.Send "rlasker3@h...;leads@g...", _



> -----Original Message-----

> From: Richard Lasker [mailto:rlasker3@h...]

> Sent: Wednesday, January 17, 2001 12:47 AM

> To: ASP CDO

> Subject: [asp_cdo] using CDONTS with IMC

> 

> 

> I am attempting to send emails using the IMC with exchange and CDONTS. I

> used a very basic script with the following text.

> <%

> Dim objMailer

> 

> Set objMailer = Server.CreateObject("CDONTS.NewMail")

> objMailer.Send "rlasker3@h...", "leads@g...", _

> 				"This is the subject", _

> 				"This is the mail message"

> Set objMailer = Nothing

> 

> After running the script I get the following error:

> 

> error '80070003' 

> The system cannot find the path specified. 

> 

> /mail.asp, line 5 

> 

> I checked the registry and found that the

> HKLM/SOFTWARE/Microsoft/Exchange/MSExchange/Active Messaging is set to

> value 1 (which the WROX P2P ASP 3.0 book page 972 said it should be set

> to)

> 

> This should direct CDONTS to the proper path for the outbox folder but

> apparently it is not doing it.

> 

> Any help?

> 

Message #3 by "Richard Lasker" <rlasker3@h...> on Wed, 17 Jan 2001 15:43:48 -0000
No go on the semi-colon. When I use that it gives me the following error:



Invalid procedure call or argument 



In looking into this further, does outlook NEED to be installed?



Also does it affect the object if my website folders are on a different

partition than the exchange folders?



Doesn't seem like it to me but I'm about out of ideas.



My project has come to a skreeching halt. I need HELP!

Message #4 by =?iso-8859-1?Q?Gonzalo_Ruiz_de_Villa_Su=E1rez?= <gonzalo.ruizdevilla@a...> on Wed, 17 Jan 2001 18:02:47 +0100
It depends on which exchange server you have



I had problem with CDO libraries.

The machine that hosted the application has Exchange 5.0.

Exchange 5.0 intalls v1.1 of CDO libraries. To run the application I needed

v1.2*.

Outlook installs the messaging library cdo.dll v1.21 (now look at the error

I had) which is the upgrade of olemsg32.dll (v1.1). This was enough to make

all the system work, there was no problem in the code. Actually, I used

sample code  I downloaded from Microsoft at



http://support.microsoft.com/support/kb/articles/Q244/5/87.ASP



If you have Exchange 5.5.  this won`t be the problem as it installs CDO

v1.2. Both service packs install CDO v1.21 too.



HTH



Gonzalo





-----Mensaje original-----

De: Richard Lasker [mailto:rlasker3@h...]

Enviado el: miércoles, 17 de enero de 2001 16:44

Para: ASP CDO

Asunto: [asp_cdo] RE: using CDONTS with IMC





No go on the semi-colon. When I use that it gives me the following error:



Invalid procedure call or argument



In looking into this further, does outlook NEED to be installed?



Also does it affect the object if my website folders are on a different

partition than the exchange folders?



Doesn't seem like it to me but I'm about out of ideas.



My project has come to a skreeching halt. I need HELP!



Message #5 by "Richard Lasker" <rlasker3@h...> on Wed, 17 Jan 2001 19:57:09 -0000
The version of Exchange that I am using is 5.5. That is why I am so

confused. It seems that everything should be in order, but they are not.



Does anyone suggest uninstalling IMC, installing SMTP for IIS and then

re-installing IMC?



That seems like my last hope at this point.

Message #6 by "Michael Morisoli" <Michael@M...> on Wed, 17 Jan 2001 12:25:10 -0800
FYI, I thought I would send some code that I use to create the MAPI

session, logon, create a new mail message and send it using CDO and in

this case Exchange 2000, but it is the same for Exchange v5.5 because I

am just using CDO and not CDO for Exchange 2000 which only runs on the

Exchange 2000 server.



    Dim oCDOSession As MAPI.Session

    Dim oFolderOutbox As MAPI.Folder

    Dim oFolderInbox As MAPI.Folder

    Dim oMessages As MAPI.Messages

    Dim oRcpt As MAPI.Recipients

    Dim oMsg As MAPI.Message



    Set oCDOSession =3D New MAPI.Session

    'Logon to CDO

    m_CDOSession.Logon "MS Exchange Settings"



    'setup objects to send email to pager

    Set oFolderOutbox =3D oCDOSession.Outbox

    Set oMessages =3D oFolderOutbox.Messages

       

    'Create outgoing email

    Set oMsg =3D oMessages.Add

    'set the adressee of the email to be the pager

    Set oRcpt =3D oMsg.Recipients

    'oRcpt.Add , "SMTP:" & txtToAddress.Text, CdoTo

    oRcpt.Add , "SMTP:YourAddress@d...", CdoTo

    oRcpt.Resolve

       

    ' set the subject

    oMsg.Subject =3D "Test Message"

       

    'set the message text

    oMsg.Text =3D "This is a test message"

       

    'send email

    oMsg.Send False         'Do not save a copy of the sent message.







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

From: Richard Lasker [mailto:rlasker3@h...]

Sent: Wednesday, January 17, 2001 11:57 AM

To: ASP CDO

Subject: [asp_cdo] RE: using CDONTS with IMC



The version of Exchange that I am using is 5.5. That is why I am so

confused. It seems that everything should be in order, but they are not.



Does anyone suggest uninstalling IMC, installing SMTP for IIS and then

re-installing IMC?



That seems like my last hope at this point.



---

http://www.asptoday.com - the leading site for timely,

in-depth information for ASP developers everywhere.




Message #7 by "Michael Morisoli" <Michael@M...> on Wed, 17 Jan 2001 12:17:31 -0800
If you are using Exchange, I don't think you can use CDONTS.  CDONTS is

part of IIS and the SMTP Gateway for IIS.  When you load Exchange v5.5,

it overwrites the SMTP services of IIS with IMC.



You should just use CDO then.  It is a more feature rich set of tools

anyway...

Message #8 by "Sebastian Pittari" <mailing@3...> on Wed, 17 Jan 2001 21:25:00 -0300
Hi



I am using ExchSrv 5.5 and CDONTS.



The things I did to had it running are quite simple:



-Install ExchSrv 5.5 IMS

-Install IIS SMTP Service

-When you reach that point in the installation where it asks you in which

directory to work, you have to select the one ExchSrv 5.5 IMS uses to

process its queue.



At the end you have to go to the Services Pannel and configure de IIS SMTP

Service never starts (disable).



I have it configured that way, and I have my ASP sending mails through my

ExchSrv. Cool! :-)



Regards.





Sebs



	|-----Original Message-----

	|From: Michael Morisoli [mailto:Michael@M...]

	|Sent: Wednesday, 17 January, 2001 5:18 PM

	|To: ASP CDO

	|Subject: [asp_cdo] RE: using CDONTS with IMC

	|

	|

	|If you are using Exchange, I don't think you can use

	|CDONTS.  CDONTS is

	|part of IIS and the SMTP Gateway for IIS.  When you load

	|Exchange v5.5,

	|it overwrites the SMTP services of IIS with IMC.

	|

	|You should just use CDO then.  It is a more feature rich

	|set of tools

	|anyway...

	|

	

  Return to Index