public RetrieverResponse Retrieve(Service service, DateTime DefaultSyncDate, EbStaticFileClient FileClient, string SolnId, bool isMq, bool SubmitAttachmentAsMultipleForm) { RetrieverResponse response = new RetrieverResponse(); using (Pop3Client Client = new Pop3Client(Config.Host, Config.Port, Config.EmailAddress, Config.Password, S22.Pop3.AuthMethod.Login, true)) { try { uint[] u = Client.GetMessageNumbers(); MailMessage[] messages = Client.GetMessages(new uint[] { 1 }, S22.Pop3.FetchOptions.Normal); } catch (S22.Pop3.InvalidCredentialsException) { Console.WriteLine("The server rejected the supplied credentials."); } } return(response); }