473,395 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

'800a0046' Permission denied error with ASP sendmail script

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

Jul 29 '05 #1
9 18985
What's on line 16?

Ray at work

"Jason" <j@jtechservices.com> wrote in message
news:11**********************@g43g2000cwa.googlegr 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

Jul 29 '05 #2
J L
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 = "em***@domain.org"
objMail.To = "em***@domain.org"
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 ***
Jul 29 '05 #3
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 = "em***@domain.org"
objMail.To = "em***@domain.org"
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
Jul 29 '05 #4
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" <po********@healthcarechaplaincy.org> wrote in message
news:eL*************@TK2MSFTNGP15.phx.gbl...
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 = "em***@domain.org"
objMail.To = "em***@domain.org"
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 ***

Jul 29 '05 #5
J L
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 ***
Jul 29 '05 #6

"J L" <j@jtechservices.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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
Aug 1 '05 #7
J L
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 ***
Aug 1 '05 #8
8| Classic ASP? Can you show your code please? Everything up to about
line 18 or so.

Thanks,

Ray at work

"J L" <j@jtechservices.com> wrote in message
news:Oo**************@TK2MSFTNGP14.phx.gbl...
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 ***

Aug 1 '05 #9
J L
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 ***
Aug 1 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: nicholas.gadacz | last post by:
hello all, i have a permission issue. my script works fine on my windows2000 server development box, however when i move it to my windows2003 production server it produces an error. any help...
10
by: Seeker | last post by:
Hi! I have to do some developing and I'm trying to configure my server to mimic the operation of our production server. The issue I'm having is that I'm trying to use CDONTS to send an email...
5
by: Patrice FRITSCH | last post by:
I'm trying to run a batch file from an asp page using WScript.Shell object. Dim oWSH set oWSH= Server.CreateObject("WScript.Shell") call oWSH.Run("cmd.exe /c " & szCmd , 0, true) szCmd...
0
by: Manojkumar | last post by:
Hai Folks, I am a new member to this group, can any one help me to find the solutions to this problem I am using Windows 2003 server and ASP Tear Component to encrupt the values while...
3
by: aydeejay | last post by:
I'm trying to troubleshoot an issue where users are not able to bind with LDAP via "GetObject" through our ASP Classic Intranet if they stay logged in overnight (beyond their allowed login hours). ...
1
by: Concheso | last post by:
Hi there! I just created a login page. 1/3 of the login works fine, but some like "Lost Password" of "Admin access to add users" are not working. Any help will be great! The erros: On...
0
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
1
by: LiamRogers | last post by:
Hello :o) I need to get one of my pages to create a log of when users access it, aslo where these users came from. The code I intend to use is... Dim landingstats Set oFs =...
2
by: =?Utf-8?B?c3RldmV3YQ==?= | last post by:
Microsoft VBScript runtime error '800a0046' Permission denied ======================= Trying to find the solution is driving me crazy. Using IIS6 on Server2003 SBS Default website localhost...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.