Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: sending email with cdonts in a windows script file


Message #1 by Hunt Paul <Paul.Hunt@i...> on Tue, 8 Jan 2002 13:36:00 -0600
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C1987B.B3C499D0

Content-Type: text/plain;

	charset="iso-8859-1"



Hello everyone. I'm trying to send email messages from a windows script

using vbscript. The email messages go fine on one of our servers but not on

the other. The following dcode works on our production system but not on our

development system.



dim objEmail

set objEmail = CreateObject("CDONTS.NEWMAIL")

objEmail.From = "paul.hunt@i..."

objEmail.To = "paul.hunt@i...;linda.buckner@i..."

objEmail.Subject = "Test"

objEmail.Body = "This is my simple test vb mail test on development"

objEmail.send

set objEmail = nothing



When I try this on our development system, we get the following error

message.



tryit.vbs(7,1 Object already exists.



Line 7 is where I actually try to send the mail. We have reboooed the system

and still get the same error. The email doesn't go out. If any of you have

encountered this error, how did you solve it?



Thanks so much.








Message #2 by "Siegfried Weber" <sweber@c...> on Wed, 9 Jan 2002 08:39:12 +0100
Check:



PRB: Error "Object already exists" Trying to Create CDONTS Objec:

http://support.microsoft.com/default.aspx?scid=3Dkb;EN-US;q294274



<Siegfried />



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

> From: Hunt Paul [mailto:Paul.Hunt@i...]

> Sent: Tuesday, January 08, 2002 8:36 PM

> To: ASP CDO

> Subject: [asp_cdo] sending email with cdonts in a windows script file

>

> Advertise on P2P or become an official list sponsor.

>

> Would you like your message to reach as many as 36,000

> professionals? Or 92,000? Or maybe even 1 million?

> Contact us (verag@w...) for more information on

> banner, button and newsletter advertising.

> ---

>

> Hello everyone. I'm trying to send email messages from a windows

script

> using vbscript. The email messages go fine on one of our servers but

not

> on the other. The following dcode works on our production system but

not

> on our development system.

>

> dim objEmail

> set objEmail =3D CreateObject("CDONTS.NEWMAIL")

> objEmail.From =3D "paul.hunt@i..."

> objEmail.To =3D "paul.hunt@i...;linda.buckner@i..."

> objEmail.Subject =3D "Test"

> objEmail.Body =3D "This is my simple test vb mail test on development"

> objEmail.send

> set objEmail =3D nothing

>

> When I try this on our development system, we get the following error

> message.

>

> tryit.vbs(7,1 Object already exists.

>

> Line 7 is where I actually try to send the mail. We have reboooed the

> system and still get the same error. The email doesn't go out. If any

of

> you have encountered this error, how did you solve it?

>

> Thanks so much.

>

>




$subst('Email.Unsub').


  Return to Index