I'm running into an issue where when I call the FetchMessage() method on my Pop3Client instance, FetchMessage() never returns and my CPU is pegged at 100%. I'm using the latest version of Aspose.Network. The code I am using has worked for most messages but there seems to be an issue with this and a few other messages.
I have a feeling it is something wrong with the message parsing.
I have gone to the trouble of calling SaveMessage() instead and the email is saved perfectly fine and is able to be opened via Outlook Express. I have a copy of the message saved if this will help you determine the problem. I cannot post the message in a public forum, however. Thank you.
I’m having this same problem with aspose.network 4.8.0.5. using .NET Framework 2.0 and the ImapClient. It is hanging for both the FetchMessage and SaveMessage methods…
below is my code that i’ve created to just test it out. It hangs on the SaveMessage() i do not get an exception and the method never returns …
Private Function GetSslClient() As ImapClient
'connect to email server
Dim vServer As String = “server.name”
Dim vPort As Integer = 143
Dim vUsername As String = “account”
Dim vPassword As String = “Password1”
'create the client SSL stuff is commented out.
Dim vClient As New ImapClient(vServer, vUsername, vPassword)
actually I’m using exchange server 2007. It is for a customer that I’m working with so i don’t have much control over the configuration. I would like to use the exchangeClient but it does not seem to support SSL and I’m restricted to SSL with their current exchange setup.
I need to get attachments from the mailbox that is being monitored. Is there possibly an alternative for me to use?
doing some more testing today this code works absolutely fine with my gmail account (though i added SSL to work with gmail).
Unfortunately the exchange server is only facing internal (dev environment) so you cant access it, is there some tests that i could possibly do for you?
Thanks for your response, unfortunately the ExchangeWebServiceClient is presenting another problem. When i run the code below i get a WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The server-guys here tell me that the server is using a self-signed certificate, could this cause any problems? I’ve tried connecting with both the webServiceaddress (as the uri below) and the mailbox directly, https://server/owa/user@domain.com and both have the same issue.
Sub Main()
Try
Dim userName As String = “user”
Dim passwd As String = “Password1”
Dim domain As String = “Domain”
Dim uri As String = “https://servername/ews/exchange.asmx”
Dim client As New ExchangeWebServiceClient(uri, userName, passwd, domain)
I’m sorry. The problem still exists for me with the ImapClient with both SaveMessage() and FetchMessage(). The server is not setup to accept SSL over IMAP at the moment, but this could be something more to test.
I’m using the code from this thread <a href="https://forum.aspose.com/t/44435
Could it be some settings on the exchange server that i could play with?