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!!
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!!