Menu

Invalid Address Exception

John Lemp
2004-05-03
2004-05-04
  • John Lemp

    John Lemp - 2004-05-03

    I use openSmtp on a pretty high volume website where users quite often enter false email address information. I would like to handle the situation of an email address not existing without an Exception being thrown, as it is a normal occurance in my application. I don't see any way to intercept the Exception before it is thrown. I think a method, or event to handle this gracefully is needed. Am I missing something or is it just not possible?

    Expecting: 250. Recieved: 501 5.5.4 Invalid Address

     
    • Wilson Chan

      Wilson Chan - 2004-05-04

      Actually, a SMTP Server will not allow anonymous users to send email when it is under ESMTP authentification, and then the rest process CANNOT continue, thus why we normally throw exceptions rather then events. Events are usually used in situations like hinting progress, reporting the result. Exception is another story.

      But I think that we can add an option(property) allowing SILENT MODE handling of errors, and in such a mode, we simply evoking an event, rather than exception.

      p.s. I am NOT the author or even the developer of OpenSMTP.NET, but I simply want to contribute;)

      Regards,
      UnruledBoy@hotmail.com

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.