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. General Programming
  3. C#
  4. Querying what kind of mail server is active on a machine

Querying what kind of mail server is active on a machine

Scheduled Pinned Locked Moved C#
sysadmindatabasetutorial
6 Posts 2 Posters 0 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.
  • M Offline
    M Offline
    Matt Fishbeck
    wrote on last edited by
    #1

    Hello all. Does anybody know how to query the available mail servers active on a mchine prior to calling the send method on the MailMessage class. i.e. There could be a SMTP or exchange server on the network. Cheers.

    L 1 Reply Last reply
    0
    • M Matt Fishbeck

      Hello all. Does anybody know how to query the available mail servers active on a mchine prior to calling the send method on the MailMessage class. i.e. There could be a SMTP or exchange server on the network. Cheers.

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Matt Fishbeck wrote:

      . There could be a SMTP or exchange server on the network.

      SMTP is a protocol. Exchange is a product. Exchange can handle SMTP (if enabled).

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4a out now (29 May 2008)

      M 1 Reply Last reply
      0
      • L leppie

        Matt Fishbeck wrote:

        . There could be a SMTP or exchange server on the network.

        SMTP is a protocol. Exchange is a product. Exchange can handle SMTP (if enabled).

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4a out now (29 May 2008)

        M Offline
        M Offline
        Matt Fishbeck
        wrote on last edited by
        #3

        Is there a call to query the STMP server to be used as a parameter to be passed into the constructor of SmtpClient?

        L 2 Replies Last reply
        0
        • M Matt Fishbeck

          Is there a call to query the STMP server to be used as a parameter to be passed into the constructor of SmtpClient?

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          If not supplied, the SmtpClient class will lookup the info in the app.config file. If not present there, it will use the defaults as defined in the machine.config file.

          xacc.ide - now with TabsToSpaces support
          IronScheme - 1.0 alpha 4a out now (29 May 2008)

          1 Reply Last reply
          0
          • M Matt Fishbeck

            Is there a call to query the STMP server to be used as a parameter to be passed into the constructor of SmtpClient?

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            I just noticed the ServicePoint property, that could be helpful, never used it :)

            xacc.ide - now with TabsToSpaces support
            IronScheme - 1.0 alpha 4a out now (29 May 2008)

            M 1 Reply Last reply
            0
            • L leppie

              I just noticed the ServicePoint property, that could be helpful, never used it :)

              xacc.ide - now with TabsToSpaces support
              IronScheme - 1.0 alpha 4a out now (29 May 2008)

              M Offline
              M Offline
              Matt Fishbeck
              wrote on last edited by
              #6

              We are using an exchange server. Do not know if it supports STMP but without supplying a server it throw an exception:-( Will see what I can find out

              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