We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

IMAP ConnectFailure "Office 365" account

We are intermittently getting a ConnectFailure when attempting to connect to the Office 365 Mailbox.

ConnectFailure at . (String , Int32 ) at . (Int32 ) at . () at Aspose.Email.Imap.ImapClient.SelectFolder(String folderName, Boolean readOnly) at KnowledgeLake.Import.EmailImporter.Common.Imap.ImapServiceModel.ImportEmails(String plainPassword)

Hi Matt,

Thank you for writing to Aspose Support team.

We have tested this issue at our end and were not able to face any problem as you have mentioned. Can you please try the following test code that has actual credentials of a test account and let us know your feedback? Please share your sample code with us for further investigation in this regard.

Sample Code:

ImapClient client = new ImapClient(“outlook.office365.com”, 993, UserTwo@Aspose2016Mar.onmicrosoft.com", “Aspose1234”);

client.SecurityOptions = SecurityOptions.Auto;

client.SelectFolder(ImapFolderInfo.InBox, true);