SmtpClient How to detect if its a valid email or not

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

    SmtpClient How to detect if its a valid email or not

    Hello all,
    b4 anything, i am using iis smtp to send the emails..


    is there anyway to detect if the "To" email is a valid one ?

    Like for eg. To = sadjwqewe@askjq w.com (so this email of course doesnt
    exist, but is there anyway to detect that ?, or if the email exist but the
    inbox is full etc..)

    i know that if i set the delivery method to pickup from iis and the email
    fails, it ill drop it in the badmail folder, but i dont think that is nice..
    is there any other way to detect any errors when the email was sent besides
    checking the badmail folder ?

    Thx in advance...


  • Jeff Dillon

    #2
    Re: SmtpClient How to detect if its a valid email or not

    What do you plan to do if their inbox is full?

    Don't most SMTP installs allow you to specify an "admin"/bounce account
    where you get notified of delivery errors?

    Jeff

    "Edgard Guilherme" <edgard@vannon. com.brwrote in message
    news:uZIUncrjIH A.1272@TK2MSFTN GP05.phx.gbl...
    Hello all,
    b4 anything, i am using iis smtp to send the emails..
    >
    >
    is there anyway to detect if the "To" email is a valid one ?
    >
    Like for eg. To = sadjwqewe@askjq w.com (so this email of course doesnt
    exist, but is there anyway to detect that ?, or if the email exist but the
    inbox is full etc..)
    >
    i know that if i set the delivery method to pickup from iis and the email
    fails, it ill drop it in the badmail folder, but i dont think that is
    nice.. is there any other way to detect any errors when the email was sent
    besides checking the badmail folder ?
    >
    Thx in advance...
    >

    Comment

    • Edgard Guilherme

      #3
      Re: SmtpClient How to detect if its a valid email or not

      well if inbox is full, i would but that email to that person on hold, and
      would try again in a few hours, and if the email doesnt exist i would set
      that the client would not receive any more emails. well i can set an email
      to delivery on error, but isnt it possible to detect such errors at the
      moment of send ?

      Like

      try
      {
      SmtpClient.Send (msg)
      }
      catch(Exception ex)
      {
      //and for eg. i could get such errors here
      }

      is such thing possible ?

      "Jeff Dillon" <jeffdillon@hot mailremove.come screveu na mensagem
      news:u4VUklrjIH A.5660@TK2MSFTN GP02.phx.gbl...
      What do you plan to do if their inbox is full?
      >
      Don't most SMTP installs allow you to specify an "admin"/bounce account
      where you get notified of delivery errors?
      >
      Jeff
      >
      "Edgard Guilherme" <edgard@vannon. com.brwrote in message
      news:uZIUncrjIH A.1272@TK2MSFTN GP05.phx.gbl...
      >Hello all,
      >b4 anything, i am using iis smtp to send the emails..
      >>
      >>
      >is there anyway to detect if the "To" email is a valid one ?
      >>
      >Like for eg. To = sadjwqewe@askjq w.com (so this email of course doesnt
      >exist, but is there anyway to detect that ?, or if the email exist but
      >the inbox is full etc..)
      >>
      >i know that if i set the delivery method to pickup from iis and the email
      >fails, it ill drop it in the badmail folder, but i dont think that is
      >nice.. is there any other way to detect any errors when the email was
      >sent besides checking the badmail folder ?
      >>
      >Thx in advance...
      >>
      >
      >

      Comment

      • Jeff Dillon

        #4
        Re: SmtpClient How to detect if its a valid email or not

        How can you tell if an inbox is full, until you send a message, and get the
        response?

        I don't think a full inbox or an invalid email raises a runtime exception.

        My suggestion is to monitor that admin/bounce account

        You aren't sending spam, are you?

        "Edgard Guilherme" <edgard@vannon. com.brwrote in message
        news:%23NMa%23q rjIHA.3512@TK2M SFTNGP03.phx.gb l...
        well if inbox is full, i would but that email to that person on hold, and
        would try again in a few hours, and if the email doesnt exist i would set
        that the client would not receive any more emails. well i can set an email
        to delivery on error, but isnt it possible to detect such errors at the
        moment of send ?
        >
        Like
        >
        try
        {
        SmtpClient.Send (msg)
        }
        catch(Exception ex)
        {
        //and for eg. i could get such errors here
        }
        >
        is such thing possible ?
        >
        "Jeff Dillon" <jeffdillon@hot mailremove.come screveu na mensagem
        news:u4VUklrjIH A.5660@TK2MSFTN GP02.phx.gbl...
        >What do you plan to do if their inbox is full?
        >>
        >Don't most SMTP installs allow you to specify an "admin"/bounce account
        >where you get notified of delivery errors?
        >>
        >Jeff
        >>
        >"Edgard Guilherme" <edgard@vannon. com.brwrote in message
        >news:uZIUncrjI HA.1272@TK2MSFT NGP05.phx.gbl.. .
        >>Hello all,
        >>b4 anything, i am using iis smtp to send the emails..
        >>>
        >>>
        >>is there anyway to detect if the "To" email is a valid one ?
        >>>
        >>Like for eg. To = sadjwqewe@askjq w.com (so this email of course doesnt
        >>exist, but is there anyway to detect that ?, or if the email exist but
        >>the inbox is full etc..)
        >>>
        >>i know that if i set the delivery method to pickup from iis and the
        >>email fails, it ill drop it in the badmail folder, but i dont think that
        >>is nice.. is there any other way to detect any errors when the email was
        >>sent besides checking the badmail folder ?
        >>>
        >>Thx in advance...
        >>>
        >>
        >>
        >
        >

        Comment

        • Edgard Guilherme

          #5
          Re: SmtpClient How to detect if its a valid email or not

          its a kind of newsletter that users choose to receive or not when
          registering not spam =D,

          but my boss wants this kind of feature, so i guess my only option is to
          monitor the email as you said, altho it ll be a little more difficult..
          "Jeff Dillon" <jeffdillon@hot mailremove.come screveu na mensagem
          news:ulzk%23urj IHA.5724@TK2MSF TNGP03.phx.gbl. ..
          How can you tell if an inbox is full, until you send a message, and get
          the response?
          >
          I don't think a full inbox or an invalid email raises a runtime exception.
          >
          My suggestion is to monitor that admin/bounce account
          >
          You aren't sending spam, are you?
          >
          "Edgard Guilherme" <edgard@vannon. com.brwrote in message
          news:%23NMa%23q rjIHA.3512@TK2M SFTNGP03.phx.gb l...
          >well if inbox is full, i would but that email to that person on hold, and
          >would try again in a few hours, and if the email doesnt exist i would set
          >that the client would not receive any more emails. well i can set an
          >email to delivery on error, but isnt it possible to detect such errors at
          >the moment of send ?
          >>
          >Like
          >>
          >try
          >{
          >SmtpClient.Sen d(msg)
          >}
          >catch(Exceptio n ex)
          >{
          >//and for eg. i could get such errors here
          >}
          >>
          >is such thing possible ?
          >>
          >"Jeff Dillon" <jeffdillon@hot mailremove.come screveu na mensagem
          >news:u4VUklrjI HA.5660@TK2MSFT NGP02.phx.gbl.. .
          >>What do you plan to do if their inbox is full?
          >>>
          >>Don't most SMTP installs allow you to specify an "admin"/bounce account
          >>where you get notified of delivery errors?
          >>>
          >>Jeff
          >>>
          >>"Edgard Guilherme" <edgard@vannon. com.brwrote in message
          >>news:uZIUncrj IHA.1272@TK2MSF TNGP05.phx.gbl. ..
          >>>Hello all,
          >>>b4 anything, i am using iis smtp to send the emails..
          >>>>
          >>>>
          >>>is there anyway to detect if the "To" email is a valid one ?
          >>>>
          >>>Like for eg. To = sadjwqewe@askjq w.com (so this email of course doesnt
          >>>exist, but is there anyway to detect that ?, or if the email exist but
          >>>the inbox is full etc..)
          >>>>
          >>>i know that if i set the delivery method to pickup from iis and the
          >>>email fails, it ill drop it in the badmail folder, but i dont think
          >>>that is nice.. is there any other way to detect any errors when the
          >>>email was sent besides checking the badmail folder ?
          >>>>
          >>>Thx in advance...
          >>>>
          >>>
          >>>
          >>
          >>
          >
          >

          Comment

          • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

            #6
            RE: SmtpClient How to detect if its a valid email or not

            unfortunately due to spam, this feature no longer exists. you used to a
            bounce message, that the email addrss was invalid, but most mail host no
            longer supply this. (the spammer would just hit mail servers with generated
            names, and knock out bounces from the list).

            the most common approach, is when someone signs up for mail, you send a
            validation email to them, that they reply from (often at signup).


            -- bruce (sqlwork.com)


            "Edgard Guilherme" wrote:
            Hello all,
            b4 anything, i am using iis smtp to send the emails..
            >
            >
            is there anyway to detect if the "To" email is a valid one ?
            >
            Like for eg. To = sadjwqewe@askjq w.com (so this email of course doesnt
            exist, but is there anyway to detect that ?, or if the email exist but the
            inbox is full etc..)
            >
            i know that if i set the delivery method to pickup from iis and the email
            fails, it ill drop it in the badmail folder, but i dont think that is nice..
            is there any other way to detect any errors when the email was sent besides
            checking the badmail folder ?
            >
            Thx in advance...
            >
            >
            >

            Comment

            Working...