I've prepared a code which sends mail. I've a problem in trying to catch the exceptions that the code throws.
1. I need to check if the internet connection is open
2. I need to check if the password and E-mail Id entered by the user are correct
In both these cases the exception thrown by the code is:
In such a case, I cannot ascertain the reason for which the exception is being thrown just from the exception string. How do I go about solving this problem? Please help.
Thanks in advance :)