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?
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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