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

Free Support Forum - aspose.com

Aspose email for dotnet not working in outlook

Aspose email.dll for dotnet is not downloading the email from outlook inbox. the error is getting as
“Unable to read data from the transport connection”


Please use the code snippet given below to fetch emails from Outlook.

ImapClient imapClient = new ImapClient();
imapClient.Host = "imap-mail.outlook.com";
imapClient.Port = 993;
imapClient.Username = @"EmailAddress";
imapClient.Password = @"Password";
imapClient.SupportedEncryption = EncryptionProtocols.Tls;
imapClient.SecurityOptions = SecurityOptions.SSLImplicit;

ImapMessageInfoCollection msgsColl = imapClient.ListMessages();
Console.WriteLine("Total Messages: " + msgsColl.Count);

We hope that this answered your question. Please feel free to reach us in additional information is required.

hi ,

thank you for the support. we are facing the same issue even after applying the given code snippet.


Please share additional logging information using the method given in the link below.
ImapClient Activity Logging
If possible, please share test account credentials as well so that we can investigate this further.