This project is read-only.

How I get detailed exception message on TryAuthenticate()?

Oct 3, 2014 at 8:29 AM
Hello.

I use TryAuthenticate() method to authorize to mailbox.
On incorrect login or password I get message:
"Exception of type 'HigLabo.Net.Mail.MailClientException' was thrown."

How I get detailed exception message?
Oct 10, 2014 at 7:19 AM
Hi.

Can you show me your reproduct code?
Do you check return value of TryAuthenticate method?
If false, it is shown that authenticate is failure.
So, other method will fail with MailClientException.


regards.
Oct 14, 2014 at 10:23 AM
...
if (!Client.TryAuthenticate())
{
// error connection
// ... How I get detailed exception message here (component native error message) ?
}

TryAuthenticate() method do not raise exception
Oct 14, 2014 at 2:55 PM
Hi.

Please use Authenticate method if you want to raise exception when authentication process.
Oct 15, 2014 at 4:28 AM
ok,

try
{
Client.Authenticate();    
}
catch (ImapAuthenticateException e)
{
MessageBox.Show(e.Message);
return false;
}

This code show common message what raised exception type "HigLabo.Net.Mail.MailClientException"
How I get detailed exception message?
Oct 15, 2014 at 4:34 AM
Hi.

Message is empty string in latest version.
Oct 15, 2014 at 5:27 AM
ok, thanks.