Using SMTP Client

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

    #1

    Using SMTP Client

    Would I be correct in assuming that the SMTP Client that's part of
    ..NET 2.0 is incapable of handling MX lookups?

    TIA,
    Lilith
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Using SMTP Client

    Lilith,

    I wouldn't say it is incapable, but rather, it doesn't have to, as the
    SMTP server that sends the mail for you will do the actual lookup.

    If you have the need to perform an MX lookup, here is an article with
    some sample code:



    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Lilith" <lilith@dcccd.e duwrote in message
    news:0vmde3dlpl 705jv78v062qgft sjkubdii1@4ax.c om...
    Would I be correct in assuming that the SMTP Client that's part of
    .NET 2.0 is incapable of handling MX lookups?
    >
    TIA,
    Lilith

    Comment

    • Alberto Poblacion

      #3
      Re: Using SMTP Client

      "Lilith" <lilith@dcccd.e duwrote in message
      news:0vmde3dlpl 705jv78v062qgft sjkubdii1@4ax.c om...
      Would I be correct in assuming that the SMTP Client that's part of
      .NET 2.0 is incapable of handling MX lookups?
      You are correct. You have to assign a SMTP server to the SmtpClient, and
      this server will do the MX lookup to relay the message. The SmtpClient
      doesn't know how to do it by itself.

      Comment

      • Lilith

        #4
        Re: Using SMTP Client

        On Tue, 11 Sep 2007 20:36:53 +0200, "Alberto Poblacion"
        <earthling-quitaestoparaco ntestar@poblaci on.orgwrote:
        >"Lilith" <lilith@dcccd.e duwrote in message
        >news:0vmde3dlp l705jv78v062qgf tsjkubdii1@4ax. com...
        >Would I be correct in assuming that the SMTP Client that's part of
        >.NET 2.0 is incapable of handling MX lookups?
        You are correct. You have to assign a SMTP server to the SmtpClient, and
        >this server will do the MX lookup to relay the message. The SmtpClient
        >doesn't know how to do it by itself.
        Thank you. That actually makes the coding easier. :-)

        --
        Lilith

        Comment

        • Lilith

          #5
          Re: Using SMTP Client

          On Tue, 11 Sep 2007 14:38:03 -0400, "Nicholas Paldino [.NET/C# MVP]"
          <mvp@spam.guard .caspershouse.c omwrote:
          >Lilith,
          >
          I wouldn't say it is incapable, but rather, it doesn't have to, as the
          >SMTP server that sends the mail for you will do the actual lookup.
          >
          If you have the need to perform an MX lookup, here is an article with
          >some sample code:
          >
          >http://www.csharphelp.com/archives/archive43.html
          Thank you. I'm working on a program that monitors one SMTP server and
          sends, potentially, multiple alerts via at least two paths to devices
          for notification of problems. Though we have two servers we can use
          to relay, I like to write my programs such that if others might find a
          need for it, they can use it. But they may not have a relay to depend
          on, so it's good to either know the limitations or work around them.

          --
          Lilith

          Comment

          Working...