Re: SMTPServer within a .Net application (General questions)

by Jasmine, (7036 days ago) @ DerekThoms

Your loop still doesn't allow messages to be processed, since you're taken over complete thread. Adding DoEvents could help.

As for being event driven - if it lives in same thread, you can't take it for yourself all the time. You have to do your code and get out to windows message pump as soon as you can.

Kreso

locked

Complete thread: