Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Alternative to CDONTS

Alternative to CDONTS

Scheduled Pinned Locked Moved The Lounge
sysadminquestion
11 Posts 4 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S srt7

    apart from the commercial products like aspmail is there an alternative to CDONTS ? I will be having a hard time convincing our sysadmin to install cdonts.dll on our server (win NT) :( so was looking for an alternative. Regards, SRT

    H Offline
    H Offline
    Heath Stewart
    wrote on last edited by
    #2

    You could do it yourself. I won't go into programming specifics in this forum :), but all you really need is the MX record for a domain and there's plenty of examples on that (I've posted one a couple times in various forums here on CodeProject, for example). Sending mail isn't that hard. Connect to the mail host on port 25 and just pass the right commands in the right order:

    HELO myhost.mydomain.tld
    MAIL FROM: username@mydomain.tld
    RCPT TO: username@otherdomain.tld
    DATA
    From: username@mydomain.tld
    To: username@otherdomain.tld
    Subject: Test
    Content-type: text/plain; charset=us-ascii
     
    This is a test.
    .

    Microsoft MVP, Visual C# My Articles

    J A 2 Replies Last reply
    0
    • H Heath Stewart

      You could do it yourself. I won't go into programming specifics in this forum :), but all you really need is the MX record for a domain and there's plenty of examples on that (I've posted one a couple times in various forums here on CodeProject, for example). Sending mail isn't that hard. Connect to the mail host on port 25 and just pass the right commands in the right order:

      HELO myhost.mydomain.tld
      MAIL FROM: username@mydomain.tld
      RCPT TO: username@otherdomain.tld
      DATA
      From: username@mydomain.tld
      To: username@otherdomain.tld
      Subject: Test
      Content-type: text/plain; charset=us-ascii
       
      This is a test.
      .

      Microsoft MVP, Visual C# My Articles

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #3

      That's only for SMTP. CDONTS works with Exchange server, and there is no guarantee the Exchange/network server will allow SMTP requests. Jeremy Falcon

      H 1 Reply Last reply
      0
      • J Jeremy Falcon

        That's only for SMTP. CDONTS works with Exchange server, and there is no guarantee the Exchange/network server will allow SMTP requests. Jeremy Falcon

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #4

        You got a point there. In general, SMTP should be okay, though, of which AspMail is a client.

        Microsoft MVP, Visual C# My Articles

        1 Reply Last reply
        0
        • S srt7

          apart from the commercial products like aspmail is there an alternative to CDONTS ? I will be having a hard time convincing our sysadmin to install cdonts.dll on our server (win NT) :( so was looking for an alternative. Regards, SRT

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #5

          If you can use SMTP, Heath's suggestion is possibility. Also, if you have Outlook installed on the server, there's a good chance CDONTS is already installed. Jeremy Falcon

          A 1 Reply Last reply
          0
          • H Heath Stewart

            You could do it yourself. I won't go into programming specifics in this forum :), but all you really need is the MX record for a domain and there's plenty of examples on that (I've posted one a couple times in various forums here on CodeProject, for example). Sending mail isn't that hard. Connect to the mail host on port 25 and just pass the right commands in the right order:

            HELO myhost.mydomain.tld
            MAIL FROM: username@mydomain.tld
            RCPT TO: username@otherdomain.tld
            DATA
            From: username@mydomain.tld
            To: username@otherdomain.tld
            Subject: Test
            Content-type: text/plain; charset=us-ascii
             
            This is a test.
            .

            Microsoft MVP, Visual C# My Articles

            A Offline
            A Offline
            Anders Molin
            wrote on last edited by
            #6

            You need some <> around those mailaddresses :P MAIL FROM: someone@moon.space - Anders Money talks, but all mine ever says is "Goodbye!" ShotKeeper, my Photo Album / Organizer Application[^]

            My Photos[^]

            H 1 Reply Last reply
            0
            • J Jeremy Falcon

              If you can use SMTP, Heath's suggestion is possibility. Also, if you have Outlook installed on the server, there's a good chance CDONTS is already installed. Jeremy Falcon

              A Offline
              A Offline
              Anders Molin
              wrote on last edited by
              #7

              Outlook on a server? Why would that ever be installed? - Anders Money talks, but all mine ever says is "Goodbye!" ShotKeeper, my Photo Album / Organizer Application[^]

              My Photos[^]

              J 1 Reply Last reply
              0
              • A Anders Molin

                Outlook on a server? Why would that ever be installed? - Anders Money talks, but all mine ever says is "Goodbye!" ShotKeeper, my Photo Album / Organizer Application[^]

                My Photos[^]

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #8

                To use CDO. It won't work without a postbox on the machine. Jeremy Falcon

                1 Reply Last reply
                0
                • A Anders Molin

                  You need some <> around those mailaddresses :P MAIL FROM: someone@moon.space - Anders Money talks, but all mine ever says is "Goodbye!" ShotKeeper, my Photo Album / Organizer Application[^]

                  My Photos[^]

                  H Offline
                  H Offline
                  Heath Stewart
                  wrote on last edited by
                  #9

                  Works fine in my mailer without them.

                  Microsoft MVP, Visual C# My Articles

                  A 1 Reply Last reply
                  0
                  • H Heath Stewart

                    Works fine in my mailer without them.

                    Microsoft MVP, Visual C# My Articles

                    A Offline
                    A Offline
                    Anders Molin
                    wrote on last edited by
                    #10

                    Not with all mailservers ;) If you read the SMTP RFC (I dont have the number right here) it says to use <> I know most servers don't care, but I always think it's best to follow the standard ;) - Anders Money talks, but all mine ever says is "Goodbye!" ShotKeeper, my Photo Album / Organizer Application[^]

                    My Photos[^]

                    H 1 Reply Last reply
                    0
                    • A Anders Molin

                      Not with all mailservers ;) If you read the SMTP RFC (I dont have the number right here) it says to use <> I know most servers don't care, but I always think it's best to follow the standard ;) - Anders Money talks, but all mine ever says is "Goodbye!" ShotKeeper, my Photo Album / Organizer Application[^]

                      My Photos[^]

                      H Offline
                      H Offline
                      Heath Stewart
                      wrote on last edited by
                      #11

                      I've read the RFC and related RFCs (many RFCs about other things as well, including the infamous annual April 1st drafts) and just never really bothered with them. I know you're right, but daemons are much more forgiving these days. I suppose I should change it in my mailer.

                      Microsoft MVP, Visual C# My Articles

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups