Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > '800a0046' Permission denied error with ASP sendmail script

Reply
Thread Tools

'800a0046' Permission denied error with ASP sendmail script

 
 
Jason
Guest
Posts: n/a
 
      07-29-2005
it works from my logon (domain admin account), but everyone else gets

Microsoft VBSCript runtime error '800a0046' Permission denied
path/patj/script.asp line 16

I looked at a lot of articles and gave the IIS accounts full access to
the mailroot folder, along with the 'regular' domain user account I am
using to test... still no good.
also to the directory in which the script(s) reside
Anyone have a definitive answer on the permissions need to run these
scripts?

We started having this problem after I migrated to Windows 2003
Server/IIS 6

Thanks in Advance

-J

 
Reply With Quote
 
 
 
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      07-29-2005
What's on line 16?

Ray at work

"Jason" <> wrote in message
news: oups.com...
> it works from my logon (domain admin account), but everyone else gets
>
> Microsoft VBSCript runtime error '800a0046' Permission denied
> path/patj/script.asp line 16
>
> I looked at a lot of articles and gave the IIS accounts full access to
> the mailroot folder, along with the 'regular' domain user account I am
> using to test... still no good.
> also to the directory in which the script(s) reside
> Anyone have a definitive answer on the permissions need to run these
> scripts?
>
> We started having this problem after I migrated to Windows 2003
> Server/IIS 6
>
> Thanks in Advance
>
> -J
>



 
Reply With Quote
 
 
 
 
J L
Guest
Posts: n/a
 
      07-29-2005
It was a sample script from Microsoft.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>CDONTS test email asp (out of process ).</title>
</head>

<body>
<%

Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = ""
objMail.To = ""
objMail.Subject="Test Email"
objMail.Body = "Test Email"
objMail.Send
Set objMail = nothing
%>

<p><strong>Your mail has been sent. </strong></p>

</body>
</html><BR/>
Try to run the asp and all the steps above and you will receive the
permission denied


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Curt_C [MVP]
Guest
Posts: n/a
 
      07-29-2005
J L wrote:
> It was a sample script from Microsoft.
>
> <html>
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>CDONTS test email asp (out of process ).</title>
> </head>
>
> <body>
> <%
>
> Set objMail = Server.CreateObject("CDONTS.NewMail")
> objMail.From = ""
> objMail.To = ""
> objMail.Subject="Test Email"
> objMail.Body = "Test Email"
> objMail.Send
> Set objMail = nothing
> %>
>
> <p><strong>Your mail has been sent. </strong></p>
>
> </body>
> </html><BR/>
> Try to run the asp and all the steps above and you will receive the
> permission denied
>
>
> *** Sent via Developersdex http://www.developersdex.com ***


Windows 2003 & CDONTS
Do a quick search on that one once...you'll see quickly...


--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
 
Reply With Quote
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      07-29-2005
So, what is on line 16? objMail.Send?

Whatever account is processing the script, typically IUSR_machine-name,
needs to have permission to write to C:\Inetpub\mailroot\pickup (default
path, anyway).

Are you running this on a Windows NT server? If not, do not use CDONTS.
That's so 90s and doesn't exist on a 2003 server. Instead, use CDOSYS.
Sample code here: http://www.aspfaq.com/show.asp?id=2026

Ray at work

"J L" <> wrote in message
news:...
> It was a sample script from Microsoft.
>
> <html>
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>CDONTS test email asp (out of process ).</title>
> </head>
>
> <body>
> <%
>
> Set objMail = Server.CreateObject("CDONTS.NewMail")
> objMail.From = ""
> objMail.To = ""
> objMail.Subject="Test Email"
> objMail.Body = "Test Email"
> objMail.Send
> Set objMail = nothing
> %>
>
> <p><strong>Your mail has been sent. </strong></p>
>
> </body>
> </html><BR/>
> Try to run the asp and all the steps above and you will receive the
> permission denied
>
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
Reply With Quote
 
J L
Guest
Posts: n/a
 
      07-29-2005
my web designer requested the CDONTS.dLL, so i moved it from a w2k
server and registered it (per some MS article)

Why is CDO the move instead of the CFONTS? I think my guy is a little
better versed in coding using the CDONTS

The thing is, the script works if I'm logged on as me. I gave the IIS
accounts full access to all of the mailroot subdirectories...

its a w2003 SP1 server.

-J



*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      08-01-2005

"J L" <> wrote in message
news:%...
> my web designer requested the CDONTS.dLL, so i moved it from a w2k
> server and registered it (per some MS article)


Your designer gets to make such decisions?!


> Why is CDO the move instead of the CFONTS? I think my guy is a little
> better versed in coding using the CDONTS


I don't know. I guess for the same reason that fuel injection is better
than carburetion.


> The thing is, the script works if I'm logged on as me. I gave the IIS
> accounts full access to all of the mailroot subdirectories...


Try it with CDO. And when you say you gave IIS permission, what account are
you speaking of, exactly?

Ray at work


 
Reply With Quote
 
J L
Guest
Posts: n/a
 
      08-01-2005
I tried some of those sample CDO scripts, and I keep getting this:
CDO.Message.1 error '80040213'

The transport failed to connect to the server.

/stafftest/Board/Forum/Jason2.asp, line 15

as far as the mailroot directories, I gave the IUSR and the IWAM account
full access.



*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      08-01-2005
8| Classic ASP? Can you show your code please? Everything up to about
line 18 or so.

Thanks,

Ray at work

"J L" <> wrote in message
news:...
> I tried some of those sample CDO scripts, and I keep getting this:
> CDO.Message.1 error '80040213'
>
> The transport failed to connect to the server.
>
> /stafftest/Board/Forum/Jason2.asp, line 15
>
> as far as the mailroot directories, I gave the IUSR and the IWAM account
> full access.
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
Reply With Quote
 
J L
Guest
Posts: n/a
 
      08-01-2005
I took out the actual email addresses, but this is a sample from
Microsofts' site. I also tried the sample codes on that ASP site you
referred me to earlier.

<%
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "emailaddiereplaced here"
objEmail.To = "emailaddiereplaced here"
objEmail.Subject = "Server down"
objEmail.Textbody = "Server1 is no longer accessible over the network."
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
"MySMTPHost"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send

%>

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: [sendmail,perl] How to catch a mailer error [perl script as sendmail.cf mailer] Andrzej Adam Filip Perl 0 03-31-2008 09:24 PM
Unable to load tag handler class "com.cj.smtp.Sendmail" for tag "send:Sendmail" sugapablo Java 0 09-21-2007 01:41 PM
Permission denied error on local script. Sal Javascript 1 08-10-2007 08:24 PM
wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory Ken Yee ASP .Net 2 10-07-2005 04:03 PM
wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory Ken Yee ASP .Net Security 2 10-07-2005 04:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57