Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Question


Message #1 by "Sachin Jain" <sachin_n_jain@r...> on Tue, 24 Jul 2001 10:31:42
Res. Sir;

  I am trying the following in an ASP file on a standalone machine----



<HTML>

<BODY>

<%

set newMailObj = server.createobject("CDNOTS.NewMail")

newMailObj.from = "sachin_n_jain@r..."

newMailObj.to = "j_sachin56@h..."

newMailObj.subject = "New Registered User"

newMailObj.body = "Hello! How are You"

newMailObj.send

%>

</BODY>

</HTML>



but it is generatinmg error----



Server object error 'ASP 0177 : 800401f3' 



Server.CreateObject Failed 



please give me the solution.

I will be very thank ful you.
Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Tue, 24 Jul 2001 11:02:58 +0100
Check spelling ;-)



set newMailObj =3D server.createobject("CDONTS.NewMail")



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

From: Sachin Jain [mailto:sachin_n_jain@r...]

Sent: 24 July 2001 11:32

To: ASP CDO

Subject: [asp_cdo] Question





Res. Sir;

  I am trying the following in an ASP file on a standalone machine----



<HTML>

<BODY>

<%

set newMailObj =3D server.createobject("CDNOTS.NewMail")

newMailObj.from =3D "sachin_n_jain@r..."

newMailObj.to =3D "j_sachin56@h..."

newMailObj.subject =3D "New Registered User"

newMailObj.body =3D "Hello! How are You"

newMailObj.send

%>

</BODY>

</HTML>



but it is generatinmg error----



Server object error 'ASP 0177 : 800401f3'



Server.CreateObject Failed



please give me the solution.

I will be very thank ful you.

Message #3 by Clint Parsley <CParsley@E...> on Tue, 24 Jul 2001 07:42:46 -0700
Good eye.....



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

From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]

Sent: Tuesday, July 24, 2001 3:03 AM

To: ASP CDO

Subject: [asp_cdo] RE: Question





Check spelling ;-)



set newMailObj =3D server.createobject("CDONTS.NewMail")



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

From: Sachin Jain [mailto:sachin_n_jain@r...]

Sent: 24 July 2001 11:32

To: ASP CDO

Subject: [asp_cdo] Question





Res. Sir;

  I am trying the following in an ASP file on a standalone machine----



<HTML>

<BODY>

<%

set newMailObj =3D server.createobject("CDNOTS.NewMail")

newMailObj.from =3D "sachin_n_jain@r..."

newMailObj.to =3D "j_sachin56@h..."

newMailObj.subject =3D "New Registered User"

newMailObj.body =3D "Hello! How are You"

newMailObj.send

%>

</BODY>

</HTML>



but it is generatinmg error----



Server object error 'ASP 0177 : 800401f3'



Server.CreateObject Failed



please give me the solution.

I will be very thank ful you.





Message #4 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Tue, 24 Jul 2001 15:49:55 +0100
Not really, I never catch things like that in my own code!



But the first thing to check when you get "Server.CreateObject Failed" 

is

whether you've typed the class string correctly...



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

From: Clint Parsley [mailto:CParsley@E...]

Sent: 24 July 2001 15:43

To: ASP CDO

Subject: [asp_cdo] RE: Question





Good eye.....



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

From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]

Sent: Tuesday, July 24, 2001 3:03 AM

To: ASP CDO

Subject: [asp_cdo] RE: Question





Check spelling ;-)



set newMailObj =3D server.createobject("CDONTS.NewMail")



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

From: Sachin Jain [mailto:sachin_n_jain@r...]

Sent: 24 July 2001 11:32

To: ASP CDO

Subject: [asp_cdo] Question





Res. Sir;

  I am trying the following in an ASP file on a standalone machine----



<HTML>

<BODY>

<%

set newMailObj =3D server.createobject("CDNOTS.NewMail")

newMailObj.from =3D "sachin_n_jain@r..."

newMailObj.to =3D "j_sachin56@h..."

newMailObj.subject =3D "New Registered User"

newMailObj.body =3D "Hello! How are You"

newMailObj.send

%>

</BODY>

</HTML>



but it is generatinmg error----



Server object error 'ASP 0177 : 800401f3'



Server.CreateObject Failed



please give me the solution.

I will be very thank ful you.

Message #5 by philip.moh@a... on Wed, 25 Jul 2001 08:50:07 +0800
Why there is 3D there? I thought it should like



set newMailObj =3D server.createobject("CDONTS.NewMail")







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

> From: Alex Shiell, ITS, EC, SE [SMTP:alex.shiell@s...]

> Sent: Tuesday, July 24, 2001 6:03 PM

> To: ASP CDO

> Subject: [asp_cdo] RE: Question

>

> Check spelling ;-)

>

> set newMailObj =3D3D server.createobject("CDONTS.NewMail")

>

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

> From: Sachin Jain [mailto:sachin_n_jain@r...]

> Sent: 24 July 2001 11:32

> To: ASP CDO

> Subject: [asp_cdo] Question

>

>

> Res. Sir;

>   I am trying the following in an ASP file on a standalone 

machine----

>

> <HTML>

> <BODY>

> <%

> set newMailObj =3D3D server.createobject("CDNOTS.NewMail")

> newMailObj.from =3D3D "sachin_n_jain@r..."

> newMailObj.to =3D3D "j_sachin56@h..."

> newMailObj.subject =3D3D "New Registered User"

> newMailObj.body =3D3D "Hello! How are You"

> newMailObj.send

> %>

> </BODY>

> </HTML>

>

> but it is generatinmg error----

>

> Server object error 'ASP 0177 : 800401f3'=3D20

>

> Server.CreateObject Failed=3D20

>

> please give me the solution.

> I will be very thank ful you.

>

>

Message #6 by philip.moh@a... on Wed, 25 Jul 2001 09:41:07 +0800
	I used the following code to send the mail from A web server

(without ssl) and the mail sent out successfully. I copied and pasted this

page to B web server (running ssl - https://). When I try to send the mail,

I received the following error message:



     An error occurred on the server when processing the URL. Please contact

the system administrator.



	Why? It is because of the https instead of http??



	This is my code:

	<%

	  Dim objMail

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



	  objMail.From = "philip.moh@a..."

	  objMail.Subject = "How TO send email with CDONTS"

	  objMail.To = "philip.moh@a..." 

	  objMail.Body = "can you read" & vbcrlf&_ 

	                 "this mail." & vbcrlf&_

	                 "testing ... " 

	  objmail.importance = 2

	   objMail.Send



	  Response.write("Mail was Sent")



	  'You must always do this with CDONTS.

	  set objMail = nothing

	%>



	Only last question, does it mean I can use CDONTS to send email as

long as the SMTP service is running and the CDONTS.DLL is installed in the

c:\winnt\system32 directory? Please advise, urgent.



	Thansk in advance.







Message #7 by "Kalyan Ramji" <kalyan_ramji@h...> on Fri, 27 Jul 2001 16:31:06
I use a similar code and it executes the asp file properly without any 

error. But I am not able to receive any email. We have notes set up in all 

our machines. Does this work only with outlook. Also, where do we specify 

the host. Is the SMTP set to the default IIS smtp? If thats the case then 

it should send an email to my inbox which it does not...Am getting a bit 

frustrated with this... Any help would be grately appreciated. Heres the 

code to be specific.



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



Msg.From=Request.Form("email")

Msg.To=Request.Form("Recepient")

Msg.Subject=Request.Form("Subject")

Msg.Body=Request.Form("Comments")

Msg.Send






  Return to Index