Unable to connect with POP3 server with 110 Port. The below is the exception.
Please find the below code being used.
Pop3Client client = new Pop3Client();
client.setSecurityOptions(SecurityOptions.Auto); int iMessageCount = client.listMessages().size(); System.out.println("Total Messages: " + iMessageCount);
I have tried to re-produce the scenario but afraid that no issue is observed. I have tried following all the options on my test account and got the mail box info. This seems to be specific issue with your server and needs further testing. Please provide us a temporary test account credentials for our testing here. It is must required to observe the problem here and provide assistance.
All the following security options (commented and un-commented both) worked fine with my test account.
//Pop3Client client = new Pop3Client(“[exchange.domain.com](http://exchange.domain.com/)”, 110, SecurityOptions.None);<o:p></o:p> //Pop3Client client = new Pop3Client("exchange.domain.com", 110, SecurityOptions.Auto); //Pop3Client client = new Pop3Client("exchange.domain.com", 110, SecurityOptions.SSLExplicit); Pop3Client client = new Pop3Client("exchange.domain.com", 110, SecurityOptions.SSLAuto); client.Username = "email@example.com"; client.Password = @"password"; Pop3MailboxInfo info = client.GetMailboxInfo();
Thank you for your swift response.
I cannot share the account credentials since this is an internal server. I am using the aspose-email-126.96.36.199-jdk16.jar. Can you please suggest me if there is any issue with the version I am using.
Let me know which version of aspose.email you tried as the option SecurityOptions.SSLAuto is not available with the version I am using.
We always test issues with the latest version of the API available publicly and this issue has also been tested with the same i.e.Aspose.Email for Java 17.4.0. Please try this with this latest version of the API and let us know your feedback.