clueless about error 80040108

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harvey Waxman

    clueless about error 80040108

    suddenly get this error:


    error '80040108'

    /geta.asp, line 23

    which is : ObjMail.Body = "Instructio ns" & 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,tr ack,bladder,you rname,address,c ity,state,zip,c ountry,phone,cr editc
    ard,expdate,ema il
    instructions = Request.Form("i nstructions")
    track = Request.Form("t rack")
    bladder = Request.Form("b ladder")
    yourname = Request.Form("y ourname")
    address = Request.Form("a ddress")
    city = Request.Form("c ity")
    state = Request.Form("s tate")
    zip = Request.Form("z ip")
    country = Request.Form("c ountry")
    phone = Request.Form("p hone")
    creditcard = Request.Form("c reditcard")
    expdate = Request.Form("e xpdate")
    email = Request.Form("e mail")
    Dim kits
    kits = Request.Form("k its")
    Dim ObjMail
    Set ObjMail = Server.CreateOb ject("CDONTS.Ne wMail")
    ObjMail.To = "hwaxman@cox.ne t"
    ObjMail.From = "info@dinghydog s.com"
    ObjMail.Subject = "Dinghy Dogs order"
    ObjMail.Body = "Instructio ns" & 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
  • Ray at

    #2
    Re: clueless about error 80040108

    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" <hwaxman@thefro wncox.net> wrote in message
    news:hwaxman-383EBA.07120026 022004@msnews.m icrosoft.com...[color=blue]
    > suddenly get this error:
    >
    >
    > error '80040108'
    >
    > /geta.asp, line 23
    >
    > which is : ObjMail.Body = "Instructio ns" & vbtab & instructions &[/color]
    vbcrlf&_[color=blue]
    >
    > and while I'm at it, why did the 'yourname' and the 'creditcard' fields[/color]
    return[color=blue]
    > blank values, (when there was no error, that is).[/color]
    [color=blue]
    > Set ObjMail = Server.CreateOb ject("CDONTS.Ne wMail")[/color]


    Comment

    • Harvey Waxman

      #3
      Re: clueless about error 80040108

      In article <uURSHIH$DHA.26 8@TK2MSFTNGP10. phx.gbl>,
      "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote:
      [color=blue]
      > 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[/color]

      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

      Comment

      • Tom Kaminski [MVP]

        #4
        Re: clueless about error 80040108

        "Harvey Waxman" <hwaxman@thefro wncox.net> wrote in message
        news:hwaxman-383EBA.07120026 022004@msnews.m icrosoft.com...[color=blue]
        > suddenly get this error:
        >
        >
        > error '80040108'
        >
        > /geta.asp, line 23
        >
        > which is : ObjMail.Body = "Instructio ns" & vbtab & instructions &[/color]
        vbcrlf&_[color=blue]
        >
        > "Email" & vbtab & email & vbcrlf&_
        > "Ordered" & vbtab & kits & vbcrlf&_
        > ObjMail.Send[/color]

        look at :

        "Ordered" & vbtab & kits & vbcrlf&_


        --
        Tom Kaminski IIS MVP
        http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS





        Comment

        • Harvey Waxman

          #5
          Re: clueless about error 80040108

          In article <hwaxman-C17A4E.09193926 022004@msnews.m icrosoft.com>,
          Harvey Waxman <hwaxman@thefro wncox.net> wrote:
          [color=blue][color=green]
          > > 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[/color]
          >
          > Thank you very much. Now if I can only figure out what to do and how to do
          > it
          > :-)[/color]

          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

          Comment

          • Ray at

            #6
            Re: clueless about error 80040108


            "Harvey Waxman" <hwaxman@thefro wncox.net> wrote in message
            news:hwaxman-A97050.09514726 022004@msnews.m icrosoft.com...
            [color=blue]
            >
            > As I said, I know nothing about ASP. I just modified a script I found.[/color]
            What I[color=blue]
            > see in your references are tutorials that assume I know far more than I[/color]
            do.[color=blue]
            >
            > Is there any resource where I can find a simple script to email a basic[/color]
            form on[color=blue]
            > my web page with CDO instead of CDONTS?
            >[/color]

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

            Ray at work


            Comment

            • Harvey Waxman

              #7
              Re: clueless about error 80040108

              In article <c1kv2o$ari12@k cweb01.netnews. att.com>,
              "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
              [color=blue]
              > look at :
              >
              > "Ordered" & vbtab & kits & vbcrlf&_[/color]

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

              "Instructio ns" & vbtab & instructions & vbcrlf&_

              what do you mean?


              --
              Harvey Waxman DMD
              73 Wright Lane
              Wickford, RI 02852
              Remove thefrown to email me

              Comment

              • Tom Kaminski [MVP]

                #8
                Re: clueless about error 80040108

                "Harvey Waxman" <hwaxman@thefro wncox.net> wrote in message
                news:hwaxman-2F2CCA.16352726 022004@msnews.m icrosoft.com...[color=blue]
                > In article <c1kv2o$ari12@k cweb01.netnews. att.com>,
                > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
                >[color=green]
                > > look at :
                > >
                > > "Ordered" & vbtab & kits & vbcrlf&_[/color]
                >
                > That line doesn't return an error. It also looks exactly the same to me[/color]
                as the[color=blue]
                > line that does return the error.
                >
                > "Instructio ns" & vbtab & instructions & vbcrlf&_
                >
                > what do you mean?[/color]

                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





                Comment

                • Harvey Waxman

                  #9
                  Re: clueless about error 80040108

                  In article <c1ls7f$ari22@k cweb01.netnews. att.com>,
                  "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
                  [color=blue]
                  > "Harvey Waxman" <hwaxman@thefro wncox.net> wrote in message
                  > news:hwaxman-2F2CCA.16352726 022004@msnews.m icrosoft.com...[color=green]
                  > > In article <c1kv2o$ari12@k cweb01.netnews. att.com>,
                  > > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
                  > >[color=darkred]
                  > > > look at :
                  > > >
                  > > > "Ordered" & vbtab & kits & vbcrlf&_[/color]
                  > >
                  > > That line doesn't return an error. It also looks exactly the same to me[/color]
                  > as the[color=green]
                  > > line that does return the error.
                  > >
                  > > "Instructio ns" & vbtab & instructions & vbcrlf&_
                  > >
                  > > what do you mean?[/color]
                  >
                  > 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?[/color]

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

                  This is the code:

                  <%
                  Dim
                  instructions,tr ack,bladder,you rname,address,c ity,state,zip,c ountry,phone,cr editc
                  ard,expdate,ema il
                  instructions = Request.Form("i nstructions")
                  track = Request.Form("t rack")
                  bladder = Request.Form("b ladder")
                  yourname = Request.Form("y ourname")
                  address = Request.Form("a ddress")
                  city = Request.Form("c ity")
                  state = Request.Form("s tate")
                  zip = Request.Form("z ip")
                  country = Request.Form("c ountry")
                  phone = Request.Form("p hone")
                  creditcard = Request.Form("c reditcard")
                  expdate = Request.Form("e xpdate")
                  email = Request.Form("e mail")
                  Dim kits
                  kits = Request.Form("k its")
                  Dim ObjMail
                  Set ObjMail = Server.CreateOb ject("CDONTS.Ne wMail")
                  ObjMail.To = "hwaxman@cox.ne t"
                  ObjMail.From = "info@dinghydog s.com"
                  ObjMail.Subject = "Dinghy Dogs order"
                  ObjMail.Body = "Instructio ns" & 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

                  Comment

                  • Harvey Waxman

                    #10
                    Re: clueless about error 80040108 SOLVED. thanks

                    In article <hwaxman-23AA61.22313926 022004@msnews.m icrosoft.com>,
                    Harvey Waxman <hwaxman@thefro wncox.net> wrote:
                    [color=blue]
                    > In article <c1ls7f$ari22@k cweb01.netnews. att.com>,
                    > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
                    >[color=green]
                    > > "Harvey Waxman" <hwaxman@thefro wncox.net> wrote in message
                    > > news:hwaxman-2F2CCA.16352726 022004@msnews.m icrosoft.com...[color=darkred]
                    > > > In article <c1kv2o$ari12@k cweb01.netnews. att.com>,
                    > > > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
                    > > >
                    > > > > look at :
                    > > > >
                    > > > > "Ordered" & vbtab & kits & vbcrlf&_
                    > > >[/color][/color][/color]


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

                    thanks all
                    [color=blue]
                    >
                    > <%
                    > Dim instructions,tr ack,bladder,you rname,address,c ity,state,zip,c ountry,phone,cr editcard,expdat e,email
                    > instructions = Request.Form("i nstructions")
                    > track = Request.Form("t rack")
                    > bladder = Request.Form("b ladder")
                    > yourname = Request.Form("y ourname")
                    > address = Request.Form("a ddress")
                    > city = Request.Form("c ity")
                    > state = Request.Form("s tate")[/color]

                    snip
                    [color=blue]
                    > "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"
                    > %>[/color]

                    Comment

                    • Tom Kaminski [MVP]

                      #11
                      Re: clueless about error 80040108 SOLVED. thanks

                      "Harvey Waxman" <hwaxman@thefro wncox.net> wrote in message
                      news:hwaxman-08BC2C.07503527 022004@msnews.m icrosoft.com...[color=blue]
                      > In article <hwaxman-23AA61.22313926 022004@msnews.m icrosoft.com>,
                      > Harvey Waxman <hwaxman@thefro wncox.net> wrote:
                      >[color=green]
                      > > In article <c1ls7f$ari22@k cweb01.netnews. att.com>,
                      > > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
                      > >[color=darkred]
                      > > > "Harvey Waxman" <hwaxman@thefro wncox.net> wrote in message
                      > > > news:hwaxman-2F2CCA.16352726 022004@msnews.m icrosoft.com...
                      > > > > In article <c1kv2o$ari12@k cweb01.netnews. att.com>,
                      > > > > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote:
                      > > > >
                      > > > > > look at :
                      > > > > >
                      > > > > > "Ordered" & vbtab & kits & vbcrlf&_
                      > > > >[/color][/color]
                      >
                      >
                      > It was the " & vbcrlf&_" that needed to be removed from this line. I
                      > misunderstood what people were telling me.[/color]

                      Yup!


                      Comment

                      Working...