473,378 Members | 1,496 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,378 software developers and data experts.

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 2641
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: FiremanSAM | last post by:
Hi, i am a newbie with php . Why does the following not work on lycos free account??????? <?PHP $to = $_POST; $from = $_POST; $mes = $_POST;
2
by: Mary E. Hill | last post by:
Compared to the other posts here, this ought to be a cakewalk for you guys;) I'm trying to make a form in a pdf doc that will mail to me. I'm trying to use the following script: this.mailForm...
3
by: Gert-Jan van Middelkoop | last post by:
Hi, I'm using an e-mailform on my website. I would like to make a dropdownmenu with several subjects, so when the e-mail arrives I can immediatly see it's subject. Therefore, this code must...
2
by: JohnK | last post by:
Hi all, This is my first time visiting this group. I already tried two other java groups, but those aren't very populated. I don't know if it is the right one, otherwise please tell me in which...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
1
by: Venki | last post by:
I have a textbox to enter an email address followed by a telephone textbox. The email has a regularexpressionvalidator and a requiredfieldvalidator. The ReqField works fine, but if I put in an...
4
by: Jason | last post by:
I'm troubleshooting a program that I didn't build, so forgive me on this one. It's called email.php, and it looks like a program that the original developer must have downloaded from somewhere. ...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.