Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDONTs works locally, but not on Web Server?


Message #1 by "kevin w perry" <kperry@c...> on Wed, 7 Mar 2001 21:41:45
Damn..this shouldn't be this complicated!



I have windows 2000 with SMTP w/ MCC , when testing locally, it works 

fine. I take the two .asp pages, one with the form, the other called asp 

script and when I run this script from our web server I get the following 

error msg:



//-----------------------------------------------

Microsoft VBScript runtime error '800a0046' 



Permission denied 



/DemoFormEmail.asp, line 17 

--------------------------------------------------//



The .dll and SMTP services have been installed on the NT 4.0 Server, both 

CDO & CDONTS dll are there and registered! But the SMTP server is relayed 

through our Mail server.  Which we though could be done?  Is this a rights 

issue?



CODE LISTED BELOW 

------------------------------------------------------------------//



<%@ Language=VBScript %>

<% Option Explicit %>

<HTML>

<HEAD>

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

</HEAD>

<BODY>

<%

         Dim objMail

         Set objMail = CreateObject("CDONTS.NewMail")



				objMail.From = Request.Form ("EmailFrom") 

				objMail.To = "kperry@c..." 

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

				objMail.Body = Request.Form ("EmailBody")

				objMail.Importance=1

				objMail.Send()

				

Set objMail = nothing



' Acknowledge that email has been sent

Response.Write "Thanks for the valuable feedback."





%> 





<P> </P>



</BODY>

</HTML>


  Return to Index