Author |
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 22 March 2005 at 2:38am | IP Logged
|
|
|
I have a form that I created in VB.NET to send out email messages. The message size can be pretty large, (over a meg) and while the message is being sent my application is brought to a halt. I spent a few hours expirementing with callbacks and threading without making any progress. Any recommendations how I can call the send message function without preventing the user from clicking other windows in my application?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 22 March 2005 at 8:51am | IP Logged
|
|
|
Just set SMTP.EnableEvents = true before connecting to mail server.
When .EnableEvents=true, MailBee calls Application.DoEvents while waiting for data to be sent/received. This allows to process Windows messages and keep UI responsive. Also, if .EnableEvents=true, MailBee fires its own events, which allows you to track the progress of mail operations.
Regards,
Alex
|
Back to Top |
|
|