Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: threading w/mailbee Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 22 March 2005 at 2:38am | IP Logged Quote Guests

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 View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 22 March 2005 at 8:51am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide