ZennoPoster.ValidateEmail question...

Macs Bank

Client
Регистрация
25.04.2014
Сообщения
59
Благодарностей
3
Баллы
8
Hello,

I understand how to check if an email account is working by using the following:
try
{
ZennoPoster.ValidateEmail(current_imap_email,current_imap_email_pass,current_proxy);
}
catch
{
return "invalid email";
}

But... my question is... how can I return the specific error details instead of returning "invalid email".
For example, I want to know if the login credentials are bad, or if there was an error connecting to the server, etc...

Thanks in advance!!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)