469,352 Members | 1,697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

clueless about error 80040108

suddenly get this error:
error '80040108'

/geta.asp, line 23

which is : ObjMail.Body = "Instructions" & vbtab & instructions & vbcrlf&_

and while I'm at it, why did the 'yourname' and the 'creditcard' fields return
blank values, (when there was no error, that is).
this is the code:

<%
Dim
instructions,track,bladder,yourname,address,city,s tate,zip,country,phone,creditc
ard,expdate,email
instructions = Request.Form("instructions")
track = Request.Form("track")
bladder = Request.Form("bladder")
yourname = Request.Form("yourname")
address = Request.Form("address")
city = Request.Form("city")
state = Request.Form("state")
zip = Request.Form("zip")
country = Request.Form("country")
phone = Request.Form("phone")
creditcard = Request.Form("creditcard")
expdate = Request.Form("expdate")
email = Request.Form("email")
Dim kits
kits = Request.Form("kits")
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "hw*****@cox.net"
ObjMail.From = "in**@dinghydogs.com"
ObjMail.Subject = "Dinghy Dogs order"
ObjMail.Body = "Instructions" & vbtab & instructions & vbcrlf&_
"Track" & vbtab & track & vbcrlf&_
"Bladder" & vbtab & bladder & vbcrlf&_
"Name" & vbtab & yourname & vbcrlf&_
"Address" & vbtab & address & vbcrlf&_
"City" & vbtab & city & vbcrlf&_
"State" & vbtab & state & vbcrlf&_
"Zip" & vbtab & zip & vbcrlf&_
"Country" & vbtab & country & vbcrlf&_
"Phone" & vbtab & phone & vbcrlf&_
"Card#" & vbtab & credit & vbcrlf&_
"Exp.Date" & vbtab & expdate & vbcrlf&_
"Email" & vbtab & email & vbcrlf&_
"Ordered" & vbtab & kits & vbcrlf&_
ObjMail.Send
Set ObjMail = Nothing
Response.Write"Thank You For Your Order"

--
Harvey Waxman DMD
73 Wright Lane
Wickford, RI 02852
Remove thefrown to email me
Jul 19 '05 #1
10 3012
See here: http://www.aspfaq.com/show.asp?id=2386

Also, unless you're on an NT 4 server, you should switch to CDO. CDONTS has
been retired. http://www.aspfaq.com/show.asp?id=2026

Ray at work
"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...
suddenly get this error:
error '80040108'

/geta.asp, line 23

which is : ObjMail.Body = "Instructions" & vbtab & instructions & vbcrlf&_
and while I'm at it, why did the 'yourname' and the 'creditcard' fields return blank values, (when there was no error, that is). Set ObjMail = Server.CreateObject("CDONTS.NewMail")

Jul 19 '05 #2
In article <uU*************@TK2MSFTNGP10.phx.gbl>,
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote:
See here: http://www.aspfaq.com/show.asp?id=2386

Also, unless you're on an NT 4 server, you should switch to CDO. CDONTS has
been retired. http://www.aspfaq.com/show.asp?id=2026

Ray at work


Thank you very much. Now if I can only figure out what to do and how to do it
:-)
--
Harvey Waxman DMD
73 Wright Lane
Wickford, RI 02852
Remove thefrown to email me
Jul 19 '05 #3
"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...
suddenly get this error:
error '80040108'

/geta.asp, line 23

which is : ObjMail.Body = "Instructions" & vbtab & instructions & vbcrlf&_
"Email" & vbtab & email & vbcrlf&_
"Ordered" & vbtab & kits & vbcrlf&_
ObjMail.Send


look at :

"Ordered" & vbtab & kits & vbcrlf&_
--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #4
In article <hw***************************@msnews.microsoft.co m>,
Harvey Waxman <hw*****@thefrowncox.net> wrote:
Also, unless you're on an NT 4 server, you should switch to CDO. CDONTS
has
been retired. http://www.aspfaq.com/show.asp?id=2026

Ray at work


Thank you very much. Now if I can only figure out what to do and how to do
it
:-)


Ray,

As I said, I know nothing about ASP. I just modified a script I found. What I
see in your references are tutorials that assume I know far more than I do.

Is there any resource where I can find a simple script to email a basic form on
my web page with CDO instead of CDONTS?


--
Harvey Waxman DMD
73 Wright Lane
Wickford, RI 02852
Remove thefrown to email me
Jul 19 '05 #5

"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...

As I said, I know nothing about ASP. I just modified a script I found. What I see in your references are tutorials that assume I know far more than I do.
Is there any resource where I can find a simple script to email a basic form on my web page with CDO instead of CDONTS?


Did you read the second link? http://www.aspfaq.com/show.asp?id=2026

Ray at work
Jul 19 '05 #6
In article <c1**********@kcweb01.netnews.att.com>,
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
look at :

"Ordered" & vbtab & kits & vbcrlf&_


That line doesn't return an error. It also looks exactly the same to me as the
line that does return the error.

"Instructions" & vbtab & instructions & vbcrlf&_

what do you mean?
--
Harvey Waxman DMD
73 Wright Lane
Wickford, RI 02852
Remove thefrown to email me
Jul 19 '05 #7
"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...
In article <c1**********@kcweb01.netnews.att.com>,
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
look at :

"Ordered" & vbtab & kits & vbcrlf&_
That line doesn't return an error. It also looks exactly the same to me

as the line that does return the error.

"Instructions" & vbtab & instructions & vbcrlf&_

what do you mean?


The "&_" at the end of the line means you want to concatenate it with the
next line, which I think is the ".Send" one. That's not what you want to
happen, is it?

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #8
In article <c1**********@kcweb01.netnews.att.com>,
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...
In article <c1**********@kcweb01.netnews.att.com>,
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
look at :

"Ordered" & vbtab & kits & vbcrlf&_


That line doesn't return an error. It also looks exactly the same to me

as the
line that does return the error.

"Instructions" & vbtab & instructions & vbcrlf&_

what do you mean?


The "&_" at the end of the line means you want to concatenate it with the
next line, which I think is the ".Send" one. That's not what you want to
happen, is it?


The line beginning with "instructions" is the first line of a series of fields
to be returned.

This is the code:

<%
Dim
instructions,track,bladder,yourname,address,city,s tate,zip,country,phone,creditc
ard,expdate,email
instructions = Request.Form("instructions")
track = Request.Form("track")
bladder = Request.Form("bladder")
yourname = Request.Form("yourname")
address = Request.Form("address")
city = Request.Form("city")
state = Request.Form("state")
zip = Request.Form("zip")
country = Request.Form("country")
phone = Request.Form("phone")
creditcard = Request.Form("creditcard")
expdate = Request.Form("expdate")
email = Request.Form("email")
Dim kits
kits = Request.Form("kits")
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "hw*****@cox.net"
ObjMail.From = "in**@dinghydogs.com"
ObjMail.Subject = "Dinghy Dogs order"
ObjMail.Body = "Instructions" & vbtab & instructions & vbcrlf&_
"Track" & vbtab & track & vbcrlf&_
"Bladder" & vbtab & bladder & vbcrlf&_
"Name" & vbtab & yourname & vbcrlf&_
"Address" & vbtab & address & vbcrlf&_
"City" & vbtab & city & vbcrlf&_
"State" & vbtab & state & vbcrlf&_
"Zip" & vbtab & zip & vbcrlf&_
"Country" & vbtab & country & vbcrlf&_
"Phone" & vbtab & phone & vbcrlf&_
"Card#" & vbtab & credit & vbcrlf&_
"Exp.Date" & vbtab & expdate & vbcrlf&_
"Email" & vbtab & email & vbcrlf&_
"Ordered" & vbtab & kits & vbcrlf&
ObjMail.Send
Set ObjMail = Nothing
Response.Write"Thank You For Your Order"
%>


--
Harvey Waxman DMD
73 Wright Lane
Wickford, RI 02852
Remove thefrown to email me
Jul 19 '05 #9
In article <hw***************************@msnews.microsoft.co m>,
Harvey Waxman <hw*****@thefrowncox.net> wrote:
In article <c1**********@kcweb01.netnews.att.com>,
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...
In article <c1**********@kcweb01.netnews.att.com>,
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:

> look at :
>
> "Ordered" & vbtab & kits & vbcrlf&_


It was the " & vbcrlf&_" that needed to be removed from this line. I
misunderstood what people were telling me.

thanks all

<%
Dim instructions,track,bladder,yourname,address,city,s tate,zip,country,phone,creditcard,expdate,email
instructions = Request.Form("instructions")
track = Request.Form("track")
bladder = Request.Form("bladder")
yourname = Request.Form("yourname")
address = Request.Form("address")
city = Request.Form("city")
state = Request.Form("state")
snip
"Country" & vbtab & country & vbcrlf&_
"Phone" & vbtab & phone & vbcrlf&_
"Card#" & vbtab & credit & vbcrlf&_
"Exp.Date" & vbtab & expdate & vbcrlf&_
"Email" & vbtab & email & vbcrlf&_
"Ordered" & vbtab & kits & vbcrlf&
ObjMail.Send
Set ObjMail = Nothing
Response.Write"Thank You For Your Order"
%>

Jul 19 '05 #10
"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...
In article <hw***************************@msnews.microsoft.co m>,
Harvey Waxman <hw*****@thefrowncox.net> wrote:
In article <c1**********@kcweb01.netnews.att.com>,
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...
> In article <c1**********@kcweb01.netnews.att.com>,
> "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
>
> > look at :
> >
> > "Ordered" & vbtab & kits & vbcrlf&_
>

It was the " & vbcrlf&_" that needed to be removed from this line. I
misunderstood what people were telling me.


Yup!
Jul 19 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by les | last post: by
2 posts views Thread by Brian | last post: by
Dormilich
2 posts views Thread by Dormilich | 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.