CDONT to CDO

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

    CDONT to CDO

    Can someone show me how to modify this simple code from CDONTS to CDO to bring
    it up to date?

    It works fine now and maybe I should leave it alone?

    <%
    Dim t1,instructions
    t1 = "Instructio ns"
    instructions = Request.Form("i nstructions")
    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 = t1 & vbtab & instructions
    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: CDONT to CDO

    For the way to do it with the fewest changes:

    Set ObjMail = Server.CreateOb ject("CDONTS.Ne wMail")
    becomes
    Set ObjMail = Server.CreateOb ject("CDO.Messa ge")

    ObjMail.Body = t1 & vbtab & instructions
    becomes
    ObjMail.TextBod y = t1 & vbtab & instructions

    See http://www.aspfaq.com/show.asp?id=2026 for more detailed informaton on
    CDO. And good job switching! :]

    Ray at home



    "Harvey Waxman" <hwaxman@thefro wncox.net> wrote in message
    news:hwaxman-79DE4F.20044127 022004@msnews.m icrosoft.com...[color=blue]
    > Can someone show me how to modify this simple code from CDONTS to CDO to[/color]
    bring[color=blue]
    > it up to date?
    >
    > It works fine now and maybe I should leave it alone?
    >
    > <%
    > Dim t1,instructions
    > t1 = "Instructio ns"
    > instructions = Request.Form("i nstructions")
    > 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 = t1 & vbtab & instructions
    > 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[/color]


    Comment

    • Harvey Waxman

      #3
      Re: CDONT to CDO

      In article <ONSXl6a$DHA.25 24@TK2MSFTNGP10 .phx.gbl>,
      "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote:
      [color=blue]
      > See http://www.aspfaq.com/show.asp?id=2026 for more detailed informaton on
      > CDO. And good job switching! :][/color]

      Thanks for the references. They are way to detailed for my modest requirements
      though, getting too far under the hood for my needs. They assume in know much
      more than I do. I need more of what you showed me and couldn't find anything
      that basic.

      Thanks.


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

      Comment

      • Ray at

        #4
        Re: CDONT to CDO

        You don't have to read the whole article if you aren't interested in sending
        attachments or anything.

        Set cdoMessage = CreateObject("C DO.Message")

        With cdoMessage
        Set .Configuration = cdoConfig
        .From = "from@me.co m"
        .To = "to@me.com"
        .Subject = "Sample CDO Message"
        .TextBody = "This is a test for CDO.message"
        .Send
        End With

        Set cdoMessage = Nothing

        That's as undetailed as it'll be. If you don't know as much as "they"
        assume you do, then you have to work to know more!

        Ray at home




        "Harvey Waxman" <hwaxman@thefro wncox.net> wrote in message
        news:hwaxman-06359E.13260728 022004@msnews.m icrosoft.com...[color=blue]
        > In article <ONSXl6a$DHA.25 24@TK2MSFTNGP10 .phx.gbl>,
        > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote:
        >[color=green]
        > > See http://www.aspfaq.com/show.asp?id=2026 for more detailed informaton[/color][/color]
        on[color=blue][color=green]
        > > CDO. And good job switching! :][/color]
        >
        > Thanks for the references. They are way to detailed for my modest[/color]
        requirements[color=blue]
        > though, getting too far under the hood for my needs. They assume in know[/color]
        much[color=blue]
        > more than I do. I need more of what you showed me and couldn't find[/color]
        anything[color=blue]
        > that basic.
        >
        > Thanks.
        >
        >
        > --
        > Harvey Waxman DMD
        > 73 Wright Lane
        > Wickford, RI 02852
        > Remove thefrown to email me[/color]


        Comment

        • Harvey Waxman

          #5
          Re: CDONT to CDO

          In article <#f3t2mi$DHA.17 92@TK2MSFTNGP12 .phx.gbl>,
          "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote:
          [color=blue]
          > That's as undetailed as it'll be. If you don't know as much as "they"
          > assume you do, then you have to work to know more![/color]

          Once again, thanks.

          I have nothing to do with the server folks. I have a modest website and wanted
          to have email forwarded to me without using mailto:

          I was told that asp was what I needed and since the server that hosts my site
          is a Windows NT (I use Macs) I found a CDONTS asp script that I modified for my
          own use.

          That's as far as my needs go or will go. I'm even unsure what the 'undetailed'
          script in your last post was for.

          Regards


          Harvey

          --
          Harvey Products makers of Dinghy Dogs
          The Boater's Best Friend

          Remove thefrown to email me

          Comment

          • Steven Burn

            #6
            Re: CDONT to CDO

            > I'm even unsure what the 'undetailed' script in your last post was for.

            It was the minimal code you needs for a CDO mail script (to replace your
            CDONTS one)

            --
            Regards

            Steven Burn
            Ur I.T. Mate Group


            Keeping it FREE!

            Disclaimer:
            I know I'm probably wrong, I just like taking part ;o)


            Harvey Waxman <info@dinghydog s.comthefrown> wrote in message
            news:info-36F653.14032128 022004@msnews.m icrosoft.com...[color=blue]
            > In article <#f3t2mi$DHA.17 92@TK2MSFTNGP12 .phx.gbl>,
            > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote:
            >[color=green]
            > > That's as undetailed as it'll be. If you don't know as much as "they"
            > > assume you do, then you have to work to know more![/color]
            >
            > Once again, thanks.
            >
            > I have nothing to do with the server folks. I have a modest website and[/color]
            wanted[color=blue]
            > to have email forwarded to me without using mailto:
            >
            > I was told that asp was what I needed and since the server that hosts my[/color]
            site[color=blue]
            > is a Windows NT (I use Macs) I found a CDONTS asp script that I modified[/color]
            for my[color=blue]
            > own use.
            >
            > That's as far as my needs go or will go. I'm even unsure what the[/color]
            'undetailed'[color=blue]
            > script in your last post was for.
            >
            > Regards
            >
            >
            > Harvey
            >
            > --
            > Harvey Products makers of Dinghy Dogs
            > The Boater's Best Friend
            > http://www.dinghydogs.com
            > Remove thefrown to email me[/color]


            Comment

            • Ray at

              #7
              Re: CDONT to CDO

              If you're on NT, you cannot use CDO. CDO first appeared in Windows 2000.
              It's unlikely/unhopeful that you're still on an NT 4 server though. Find
              out for sure. If NT, use CDONTS. If 2000 or higher, use CDO.

              Ray at home

              "Harvey Waxman" <info@dinghydog s.comthefrown> wrote in message
              news:info-36F653.14032128 022004@msnews.m icrosoft.com...[color=blue]
              > In article <#f3t2mi$DHA.17 92@TK2MSFTNGP12 .phx.gbl>,
              > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote:
              >[color=green]
              > > That's as undetailed as it'll be. If you don't know as much as "they"
              > > assume you do, then you have to work to know more![/color]
              >
              > Once again, thanks.
              >
              > I have nothing to do with the server folks. I have a modest website and[/color]
              wanted[color=blue]
              > to have email forwarded to me without using mailto:
              >
              > I was told that asp was what I needed and since the server that hosts my[/color]
              site[color=blue]
              > is a Windows NT (I use Macs) I found a CDONTS asp script that I modified[/color]
              for my[color=blue]
              > own use.
              >
              > That's as far as my needs go or will go. I'm even unsure what the[/color]
              'undetailed'[color=blue]
              > script in your last post was for.
              >
              > Regards
              >
              >
              > Harvey
              >
              > --
              > Harvey Products makers of Dinghy Dogs
              > The Boater's Best Friend
              > http://www.dinghydogs.com
              > Remove thefrown to email me[/color]


              Comment

              • Harvey Waxman

                #8
                Re: CDONT to CDO

                In article <eC97clj$DHA.26 64@TK2MSFTNGP09 .phx.gbl>,
                "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote:
                [color=blue]
                > If 2000 or higher, use CDO.[/color]

                It is Windows 2000. I would still like to see a list of the statements in
                CDONTS and their CDO counterparts, if there is such a list.

                I am passing the data from a form to the email so it's more than simple text
                email. I posted the abbreviated code last time. and there were only two
                changes if I recall.

                --
                Harvey Products makers of Dinghy Dogs
                The Boater's Best Friend

                Remove thefrown to email me

                Comment

                Working...