Basic CDONTS question

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

    Basic CDONTS question

    objNewMail = Server.CreateOb ject("CDONTS.Ne wMail")

    How do I know whether the "Send" command from a CDONTS object actually was
    sent?

    Is there a status variable that can be checked? Or a log file that can be
    written to?

    Thanks in advance!

    Steve


  • Ray at

    #2
    Re: Basic CDONTS question

    BCC yourself.

    All that CDONTS does is create a text file that is compliant with SMTP
    requirements and drops the file in \inetpub\mailro ot\pickup. From there,
    it's up to your SMTP service to handle sending it. If the message cannot be
    sent, like because of a DNS issue or an invalid from address, for example,
    you will see entries in the application log on the server. (I believe it's
    app, and not system.)

    Ray at work

    p.s. Unless you're on an NT server, you should use CDOSYS. CDONTS is old
    technology. http://www.aspfaq.com/2026



    "Steve" <sbohler@delete this.stny.rr.co m> wrote in message
    news:DuSsb.7796 8$ji3.61447@twi ster.nyroc.rr.c om...[color=blue]
    > objNewMail = Server.CreateOb ject("CDONTS.Ne wMail")
    >
    > How do I know whether the "Send" command from a CDONTS object actually was
    > sent?
    >
    > Is there a status variable that can be checked? Or a log file that can be
    > written to?
    >
    > Thanks in advance!
    >
    > Steve
    >
    >[/color]


    Comment

    • Steve

      #3
      Re: Basic CDONTS question

      Ray,

      Thanks for your reply.

      I found the message sitting in the pickup directory.

      Any idea why it's just sitting there (I know this goes beyond this
      newsgroup)?

      Thanks again,
      Steve

      "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
      news:On9dcxiqDH A.3180@TK2MSFTN GP11.phx.gbl...[color=blue]
      > BCC yourself.
      >
      > All that CDONTS does is create a text file that is compliant with SMTP
      > requirements and drops the file in \inetpub\mailro ot\pickup. From there,
      > it's up to your SMTP service to handle sending it. If the message cannot[/color]
      be[color=blue]
      > sent, like because of a DNS issue or an invalid from address, for example,
      > you will see entries in the application log on the server. (I believe it's
      > app, and not system.)
      >
      > Ray at work
      >
      > p.s. Unless you're on an NT server, you should use CDOSYS. CDONTS is old
      > technology. http://www.aspfaq.com/2026
      >
      >
      >
      > "Steve" <sbohler@delete this.stny.rr.co m> wrote in message
      > news:DuSsb.7796 8$ji3.61447@twi ster.nyroc.rr.c om...[color=green]
      > > objNewMail = Server.CreateOb ject("CDONTS.Ne wMail")
      > >
      > > How do I know whether the "Send" command from a CDONTS object actually[/color][/color]
      was[color=blue][color=green]
      > > sent?
      > >
      > > Is there a status variable that can be checked? Or a log file that can[/color][/color]
      be[color=blue][color=green]
      > > written to?
      > >
      > > Thanks in advance!
      > >
      > > Steve
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Aaron Bertrand - MVP

        #4
        Re: Basic CDONTS question

        > I found the message sitting in the pickup directory.



        Use CDO.Message and an SMTP server. CDONTS is horrible, and has been
        deprecated for this and a variety of other reasons.




        Comment

        • Ray at

          #5
          Re: Basic CDONTS question

          Look in the event logs on the server for SMTP events. There should be
          something indicating why the message couldn't be sent, either a DNS issue, a
          relaying issue, or something else. Either that, or the SMTP service isn't
          running.

          Ray at work

          "Steve" <sbohler@delete this.stny.rr.co m> wrote in message
          news:IS3tb.6661 5$1N3.33490@twi ster.nyroc.rr.c om...[color=blue]
          > Ray,
          >
          > Thanks for your reply.
          >
          > I found the message sitting in the pickup directory.
          >
          > Any idea why it's just sitting there (I know this goes beyond this
          > newsgroup)?
          >
          > Thanks again,
          > Steve
          >
          > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
          > news:On9dcxiqDH A.3180@TK2MSFTN GP11.phx.gbl...[color=green]
          > > BCC yourself.
          > >
          > > All that CDONTS does is create a text file that is compliant with SMTP
          > > requirements and drops the file in \inetpub\mailro ot\pickup. From[/color][/color]
          there,[color=blue][color=green]
          > > it's up to your SMTP service to handle sending it. If the message[/color][/color]
          cannot[color=blue]
          > be[color=green]
          > > sent, like because of a DNS issue or an invalid from address, for[/color][/color]
          example,[color=blue][color=green]
          > > you will see entries in the application log on the server. (I believe[/color][/color]
          it's[color=blue][color=green]
          > > app, and not system.)
          > >
          > > Ray at work
          > >
          > > p.s. Unless you're on an NT server, you should use CDOSYS. CDONTS is[/color][/color]
          old[color=blue][color=green]
          > > technology. http://www.aspfaq.com/2026
          > >
          > >
          > >
          > > "Steve" <sbohler@delete this.stny.rr.co m> wrote in message
          > > news:DuSsb.7796 8$ji3.61447@twi ster.nyroc.rr.c om...[color=darkred]
          > > > objNewMail = Server.CreateOb ject("CDONTS.Ne wMail")
          > > >
          > > > How do I know whether the "Send" command from a CDONTS object actually[/color][/color]
          > was[color=green][color=darkred]
          > > > sent?
          > > >
          > > > Is there a status variable that can be checked? Or a log file that can[/color][/color]
          > be[color=green][color=darkred]
          > > > written to?
          > > >
          > > > Thanks in advance!
          > > >
          > > > Steve
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...