r.vanlaake
  • r.vanlaake
  • 52.25% (Neutral)
  • Newbie Topic Starter
12 years ago
Hi,

I have written an email receiving application, that downloads emails from several emailboxes. When one box is not reachable or when the settings are wrong (for example not using SSL when that is required) the timeout is pretty long (45 seconds) and then a messagebox generated by EAGetMail appears ("a request to send or receive data was disallowed...." etc). This is not good for me because the application stops, and can only continue after I click the OK button.

Questions:

1) How can I set the timeout to 10 seconds? (or any other value)

2) How can I suppress the messageboxes? Is there a way to retrieve the actual message (for example EAGetMail.LastErrorMessage), so that it can be stored for investigation later?

Thanks,

ivan
  • ivan
  • 100% (Exalted)
  • Administration
12 years ago

Hi,

I have written an email receiving application, that downloads emails from several emailboxes. When one box is not reachable or when the settings are wrong (for example not using SSL when that is required) the timeout is pretty long (45 seconds) and then a messagebox generated by EAGetMail appears ("a request to send or receive data was disallowed...." etc). This is not good for me because the application stops, and can only continue after I click the OK button.

Questions:

1) How can I set the timeout to 10 seconds? (or any other value)

2) How can I suppress the messageboxes? Is there a way to retrieve the actual message (for example EAGetMail.LastErrorMessage), so that it can be stored for investigation later?

Thanks,

r.vanlaake wrote:



Hi, you can set MailClient.Timeout property to 10/

the messagebox was not popup by EAGetMail, EAGetMail only throws exception, but in sample project it use messagebox to display the exception, you can use other way to store the exception.
r.vanlaake
  • r.vanlaake
  • 52.25% (Neutral)
  • Newbie Topic Starter
12 years ago
Thanks for your swift support. Success on both questions!

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.