Added a new functionality for sending mails using threading. Also, made a few changes to error handling. Also, added my own custom exception class called InvalidCredentialsException.cs