Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
r.vanlaake  
#1 Posted : Friday, February 8, 2013 2:02:02 AM(UTC)
r.vanlaake

Rank: Newbie

Groups: Registered
Joined: 11/9/2012(UTC)
Posts: 3
Location: The Netherlands

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  
#2 Posted : Saturday, February 9, 2013 5:41:00 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
r.vanlaake wrote:
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,



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  
#3 Posted : Monday, February 11, 2013 3:07:03 AM(UTC)
r.vanlaake

Rank: Newbie

Groups: Registered
Joined: 11/9/2012(UTC)
Posts: 3
Location: The Netherlands

Thanks for your swift support. Success on both questions!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.067 seconds.

EXPLORE TUTORIALS

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