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,
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.
Rank: Newbie
Groups: Registered
Joined: 11/9/2012(UTC) Posts: 3 Location: The Netherlands
Thanks for your swift support. Success on both questions!
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
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.