469,275 Members | 1,802 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Error in mailform

I have made a asp mailform.

What is wrong?

I get this error:

Microsoft VBScript runtime error '800a0046'

Permission denied

/fh/medlemsnett/send_mail.asp, line 26

Line 26 looks like this:

objCDONTS.Send

Here is the code:

<%

Dim name, email, message, messageSubject

name = request.form("name")

email = request.form("email")

message = request.form("message")

messageSubject = request.form("Meldingstittel")

Dim objCDONTS ' Email object

Dim strFromName ' From persons' real name

Dim strFromEmail, strToEmail ' Email addresses

Dim strSubject, strBody ' Message

Dim misccompo

strSubject = Request.Form("Emne")

strFromName = Session("Navn")

strFromEmail = Session("Epost")

strToEmail = Trim(Request.Form("til"))

strBody = Trim(Request.Form("Melding"))

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

objCDONTS.From = strFromName & " <" & strFromEmail & ">"

objCDONTS.To = strToEmail

objCDONTS.Subject = messageSubject & strSubject

objCDONTS.Body = "--------------------------------------" & vbcrlf & vbcrlf
& strbody & vbcrlf & vbcrlf & vbcrlf &
"--------------------------------------------------------------" & vbcrlf &
"MESSAGE ENDS: End of message"

objCDONTS.Send

Set objCDONTS = Nothing

response.redirect "default.asp"

response.end

%>
Jul 19 '05 #1
16 2510
"Christopher Brandsdal" wrote:
: I have made a asp mailform.
:
: What is wrong?
:
: I get this error:
:
: Microsoft VBScript runtime error '800a0046'
:
: Permission denied
:
: /fh/medlemsnett/send_mail.asp, line 26

what are the rights in this folder?

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp
-WSH 5.6 documentation download-
http://www.microsoft.com/downloads/d...displaylang=en
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #2

"Roland Hall" <nobody@nowhere> skrev i melding
news:eB***************@TK2MSFTNGP12.phx.gbl...
"Christopher Brandsdal" wrote:
: I have made a asp mailform.
:
: What is wrong?
:
: I get this error:
:
: Microsoft VBScript runtime error '800a0046'
:
: Permission denied
:
: /fh/medlemsnett/send_mail.asp, line 26

what are the rights in this folder?
666

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0 -Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp -WSH 5.6 documentation download-
http://www.microsoft.com/downloads/d...displaylang=en -MSDN Library-
http://msdn.microsoft.com/library/default.asp

Jul 19 '05 #3
I tried to change it to 777 but that did not help...
must be something else..

"Christopher Brandsdal" <ch***********@c2i.net> skrev i melding
news:%2****************@TK2MSFTNGP09.phx.gbl...

"Roland Hall" <nobody@nowhere> skrev i melding
news:eB***************@TK2MSFTNGP12.phx.gbl...
"Christopher Brandsdal" wrote:
: I have made a asp mailform.
:
: What is wrong?
:
: I get this error:
:
: Microsoft VBScript runtime error '800a0046'
:
: Permission denied
:
: /fh/medlemsnett/send_mail.asp, line 26

what are the rights in this folder?


666

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
-Technet Knowledge Base-

http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-

http://www.microsoft.com/technet/tre...er/default.asp
-WSH 5.6 documentation download-

http://www.microsoft.com/downloads/d...displaylang=en
-MSDN Library-
http://msdn.microsoft.com/library/default.asp


Jul 19 '05 #4
Give IUSR permission to write to the \inetpub\mailroot\pickup folder.

Ray at work

"Christopher Brandsdal" <ch***********@c2i.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I tried to change it to 777 but that did not help...
must be something else..

"Christopher Brandsdal" <ch***********@c2i.net> skrev i melding
news:%2****************@TK2MSFTNGP09.phx.gbl...

"Roland Hall" <nobody@nowhere> skrev i melding
news:eB***************@TK2MSFTNGP12.phx.gbl...
"Christopher Brandsdal" wrote:
: I have made a asp mailform.
:
: What is wrong?
:
: I get this error:
:
: Microsoft VBScript runtime error '800a0046'
:
: Permission denied
:
: /fh/medlemsnett/send_mail.asp, line 26

what are the rights in this folder?


666

--
Roland

This information is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
-Technet Knowledge Base-

http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-

http://www.microsoft.com/technet/tre...er/default.asp
-WSH 5.6 documentation download-

http://www.microsoft.com/downloads/d...displaylang=en
-MSDN Library-
http://msdn.microsoft.com/library/default.asp



Jul 19 '05 #5
"Christopher Brandsdal" wrote:
: I tried to change it to 777 but that did not help...
: must be something else..

Ya', it might be that *nix doesn't support VBScript unless you're running
Chili!Soft. You're referring to *nix permissions so what is actually
running on the server? OS/Web

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp
-WSH 5.6 documentation download-
http://www.microsoft.com/downloads/d...displaylang=en
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #6
hehe I'll just use persits mail :)
I'ts a 2000 server, but I'm using cute ftp tu log on the ftp to upload...
Think there is something wrong with the component.. the code runs great on
another server. The persits runs great!
"Roland Hall" <nobody@nowhere> skrev i melding
news:e0**************@TK2MSFTNGP12.phx.gbl...
"Christopher Brandsdal" wrote:
: I tried to change it to 777 but that did not help...
: must be something else..

Ya', it might be that *nix doesn't support VBScript unless you're running
Chili!Soft. You're referring to *nix permissions so what is actually
running on the server? OS/Web

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0 -Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp -WSH 5.6 documentation download-
http://www.microsoft.com/downloads/d...displaylang=en -MSDN Library-
http://msdn.microsoft.com/library/default.asp

Jul 19 '05 #7
Give IUSR permission to write to the \inetpub\mailroot\pickup folder.

Ray at work

"Christopher Brandsdal" <ch***********@c2i.net> wrote in message
news:ep**************@TK2MSFTNGP11.phx.gbl...
hehe I'll just use persits mail :)
I'ts a 2000 server, but I'm using cute ftp tu log on the ftp to upload...
Think there is something wrong with the component.. the code runs great on
another server. The persits runs great!
"Roland Hall" <nobody@nowhere> skrev i melding
news:e0**************@TK2MSFTNGP12.phx.gbl...
"Christopher Brandsdal" wrote:
: I tried to change it to 777 but that did not help...
: must be something else..

Ya', it might be that *nix doesn't support VBScript unless you're running Chili!Soft. You're referring to *nix permissions so what is actually
running on the server? OS/Web

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
-Technet Knowledge Base-

http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-

http://www.microsoft.com/technet/tre...er/default.asp
-WSH 5.6 documentation download-

http://www.microsoft.com/downloads/d...displaylang=en
-MSDN Library-
http://msdn.microsoft.com/library/default.asp


Jul 19 '05 #8
"Christopher Brandsdal" wrote:
: hehe I'll just use persits mail :)
: I'ts a 2000 server, but I'm using cute ftp tu log on the ftp to upload...
: Think there is something wrong with the component.. the code runs great on
: another server. The persits runs great!

That would explain the confusion on my part. Wondering why you would want
to use CDONTS instead of ASPEmail anyway.
Jul 19 '05 #9

"Roland Hall" <nobody@nowhere> wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...

That would explain the confusion on my part. Wondering why you would want
to use CDONTS instead of ASPEmail anyway.


Why use a third party prodcut when there's a first party one right there
already? That's how I look at it, anyway.

Ray at work
Jul 19 '05 #10
"Ray at <%=sLocation%>" wrote:
: Why use a third party prodcut when there's a first party one right there
: already? That's how I look at it, anyway.

Isn't it true that CDONTS has been deprecated to make way for CDOSYS? Also,
CDONTS doesn't come with W2K3, does it, although I believe you can install
it on there but with CDOSYS, why would you?

Also, I thought the IUSR needed rights at the \inetpub\mailroot.

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp
-WSH 5.6 documentation download-
http://www.microsoft.com/downloads/d...displaylang=en
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #11

"Roland Hall" <nobody@nowhere> wrote in message
news:e5*************@TK2MSFTNGP12.phx.gbl...
"Ray at <%=sLocation%>" wrote:
: Why use a third party prodcut when there's a first party one right there
: already? That's how I look at it, anyway.

Isn't it true that CDONTS has been deprecated to make way for CDOSYS? Also, CDONTS doesn't come with W2K3, does it, although I believe you can install
it on there but with CDOSYS, why would you?
Okay, true, but what I meant was just using native component vs. third
party. :]

Also, I thought the IUSR needed rights at the \inetpub\mailroot.


I believe it's just the pickup directory, because .Send writes a file to
there. Maybe everyone should just start formatting their Web servers in
FAT32 and be done with it. ;]

Ray at work
Jul 19 '05 #12
"Ray at <%=sLocation%>" wrote:
: "Roland Hall" wrote:
: > Isn't it true that CDONTS has been deprecated to make way for CDOSYS?
: Also,
: > CDONTS doesn't come with W2K3, does it, although I believe you can
install
: > it on there but with CDOSYS, why would you?
:
: Okay, true, but what I meant was just using native component vs. third
: party. :]

Fair enough. But, specifically re: ASPEmail, doesn't CDONTS require an SMTP
server where ASPEmail doesn't? And it appears there is a long list of
features in ASPEmail over CDONTS. I would agree though that for basic
needs, CDONTS would be sufficient and Microsoft does also give you an SMTP
server.

: > Also, I thought the IUSR needed rights at the \inetpub\mailroot.
:
: I believe it's just the pickup directory, because .Send writes a file to
: there. Maybe everyone should just start formatting their Web servers in
: FAT32 and be done with it. ;]

I read an article at 4guysfromrolla.com that referenced only the mailroot.
Perhaps that is their pickup directory.

I'm searching for that NTFS->FAT-32 conversion utility right now.

Roland
Jul 19 '05 #13


Fair enough. But, specifically re: ASPEmail, doesn't CDONTS require an SMTP server where ASPEmail doesn't? And it appears there is a long list of
features in ASPEmail over CDONTS.
Well, they'd both require an SMTP server. But with CDONTS, your Web server
has to be the SMTP server. You cannot use an external SMTP server with
CDONTS, AFAIK. But, yes, ASPMail I'm sure has many additional features over
CDONTS. CDONTS is old and weak! :]

I would agree though that for basic
needs, CDONTS would be sufficient and Microsoft does also give you an SMTP
server.
:
: I believe it's just the pickup directory, because .Send writes a file to
: there. Maybe everyone should just start formatting their Web servers in
: FAT32 and be done with it. ;]

I read an article at 4guysfromrolla.com that referenced only the mailroot.
Perhaps that is their pickup directory.
Well, I'm sure that this would work 99.999% of the time, since the pickup
directory will inherit permissions unless someone specifies otherwise.
I'm searching for that NTFS->FAT-32 conversion utility right now.


Better yet, go with FAT16. Might as well switch from CDO back to CDONTS too
then. ;]

Ray at work
Jul 19 '05 #14
"Ray at <%=sLocation%>" wrote:

: > I'm searching for that NTFS->FAT-32 conversion utility right now.
:
: Better yet, go with FAT16. Might as well switch from CDO back to CDONTS
too
: then. ;]

Don't laugh. I still have an original IBM XT and it runs. Current date is
Jan. 22, 1904.
Jul 19 '05 #15

"Roland Hall" <nobody@nowhere> wrote in message
news:OI**************@TK2MSFTNGP12.phx.gbl...

Don't laugh. I still have an original IBM XT and it runs. Current date is Jan. 22, 1904.


I'm sorry, but I'm "LOL'ing." :]

Ray at home
Jul 19 '05 #16
"Ray at <%=sLocation%>" wrote:
: "Roland Hall" wrote:
: > Don't laugh. I still have an original IBM XT and it runs. Current date
: is
: > Jan. 22, 1904.
:
: I'm sorry, but I'm "LOL'ing." :]

Hey, I never said I was using it! (O:=
Jul 19 '05 #17

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by FiremanSAM | last post: by
2 posts views Thread by Mary E. Hill | last post: by
3 posts views Thread by Gert-Jan van Middelkoop | last post: by
7 posts views Thread by p | last post: by
4 posts views Thread by Jason | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.