473,562 Members | 2,600 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("n ame")

email = request.form("e mail")

message = request.form("m essage")

messageSubject = request.form("M eldingstittel")

Dim objCDONTS ' Email object

Dim strFromName ' From persons' real name

Dim strFromEmail, strToEmail ' Email addresses

Dim strSubject, strBody ' Message

Dim misccompo

strSubject = Request.Form("E mne")

strFromName = Session("Navn")

strFromEmail = Session("Epost" )

strToEmail = Trim(Request.Fo rm("til"))

strBody = Trim(Request.Fo rm("Melding"))

Set objCDONTS = Server.CreateOb ject("CDONTS.Ne wMail")

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

objCDONTS.To = strToEmail

objCDONTS.Subje ct = messageSubject & strSubject

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

objCDONTS.Send

Set objCDONTS = Nothing

response.redire ct "default.as p"

response.end

%>
Jul 19 '05 #1
16 2653
"Christophe r 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******** *******@TK2MSFT NGP12.phx.gbl.. .
"Christophe r 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..

"Christophe r Brandsdal" <ch***********@ c2i.net> skrev i melding
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..

"Roland Hall" <nobody@nowhere > skrev i melding
news:eB******** *******@TK2MSFT NGP12.phx.gbl.. .
"Christophe r 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\mailro ot\pickup folder.

Ray at work

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

"Christophe r Brandsdal" <ch***********@ c2i.net> skrev i melding
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..

"Roland Hall" <nobody@nowhere > skrev i melding
news:eB******** *******@TK2MSFT NGP12.phx.gbl.. .
"Christophe r 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
"Christophe r 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******** ******@TK2MSFTN GP12.phx.gbl...
"Christophe r 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\mailro ot\pickup folder.

Ray at work

"Christophe r Brandsdal" <ch***********@ c2i.net> wrote in message
news:ep******** ******@TK2MSFTN GP11.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******** ******@TK2MSFTN GP12.phx.gbl...
"Christophe r 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
"Christophe r 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******** ******@TK2MSFTN GP10.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

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

Similar topics

2
3876
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
1669
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 (true, "name@address.com", "", "", "Message Subject Description") And keep getting a syntax error saying 'illegal character, line 2'. Of
3
1715
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 be changed: <input type="hidden" name="subject" value="selection of the dropdownmenu"
2
1636
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 group I have to put me question. And yes I know that I'm multiposting, crossposting or whatever. Reason is that I saw this group...
13
6581
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
4988
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. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version,...
1
1896
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 invalid email addy then click in the telephone field below, something very odd happens. The telephone label & textbox (and all controls below) shift...
4
3886
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. The part of the program that sends an email states this: $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html;...
2
19424
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's...
0
7655
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...
0
7577
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7869
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. ...
0
8101
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...
0
6221
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5477
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...
0
3623
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2073
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1191
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.