HI all,
if we implement the multithreading possibility we should keep in mind, that we need to add a possibility to check, if a new message was received (maybe a delegate). Processing the data within a separate thread doesn't notice the client (in my case a testcase within ReSharper) when the message was processed an the data is available in the ReceivedEmail-array.
Regards,
Maik.
I was unit testing SimpleSmtpServer in VS2008 / .NET 3.51 and noticed a socket related bug. Specifically, there is a deadlock bug between the listener thread and the main thread (unit test client in my case). In HandleSmtpTransaction, the code will lock up once the SmtpState changes to QUIT. This is because no more data is available to read form the socket so the read attempt will block and...