473,799 Members | 2,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'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 19010
What's on line 16?

Ray at work

"Jason" <j@jtechservice s.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.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.CreateOb ject("CDONTS.Ne wMail")
objMail.From = "em***@domain.o rg"
objMail.To = "em***@domain.o rg"
objMail.Subject ="Test Email"
objMail.Body = "Test Email"
objMail.Send
Set objMail = nothing
%>

<p><strong>Yo ur 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.CreateOb ject("CDONTS.Ne wMail")
objMail.From = "em***@domain.o rg"
objMail.To = "em***@domain.o rg"
objMail.Subject ="Test Email"
objMail.Body = "Test Email"
objMail.Send
Set objMail = nothing
%>

<p><strong>Yo ur 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\mail root\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********@hea lthcarechaplain cy.org> wrote in message
news:eL******** *****@TK2MSFTNG P15.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.CreateOb ject("CDONTS.Ne wMail")
objMail.From = "em***@domain.o rg"
objMail.To = "em***@domain.o rg"
objMail.Subject ="Test Email"
objMail.Body = "Test Email"
objMail.Send
Set objMail = nothing
%>

<p><strong>Yo ur 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@jtechservice s.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.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@jtechservice s.com> wrote in message
news:Oo******** ******@TK2MSFTN GP14.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("C DO.Message")
objEmail.From = "emailaddierepl aced here"
objEmail.To = "emailaddierepl aced here"
objEmail.Subjec t = "Server down"
objEmail.Textbo dy = "Server1 is no longer accessible over the network."
objEmail.Config uration.Fields. Item _
("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2
objEmail.Config uration.Fields. Item _
("http://schemas.microso ft.com/cdo/configuration/smtpserver") = _
"MySMTPHost "
objEmail.Config uration.Fields. Item _
("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25
objEmail.Config uration.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
58301
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 would be great. script <%
10
9788
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 under IIS on a Windows 2003 Server. The server does not have the SMTP service running, but I do have a third party SMTP/POP/IMAP server running. I have copied the CDONTS.DLL file and registered it. In the Web Serice Extensions I have enabled the...
5
7044
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 contains the program to execute (fop.bat with several parameters). But I'm getting the following error message :
0
4403
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 sending the values to other pages, it shows me error
3
5864
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). The problem does not occur when performing the same bindings using a logon script. So, the user logs in, is able to perform queries all day, and then fails to log out at the end of the day. We'd prefer that they did log out nightly, but it...
1
2790
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 the Lost Password using for instance: me@me.com
0
6611
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
1
2481
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 = Server.CreateObject("Scripting.FileSystemObject") Set oFile = oFs.CreateTextFile(Server.MapPath("/landingstats.csv"),2,True) oFile.write adid & "|" & timestamp
2
10535
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 IE7 browser running under administrator xp account login
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10249
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10025
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7563
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6804
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.