try-catch block used while smtp exception need to display an error message in the local server
问题 Catch block used whenever there is an exception while using smtp port,but it will throw exception thats fine, it will take a very long time and also the exception message will be directly shown in the code itself,requirement is to display an error message while executing in the localserver and shouldnot come to the code. It should throw exception whenever the server is down or invalid email Id or change in smtp port ,Conclusion is the error message should not come directly to the code.It