asenour
  • asenour
  • 52.25% (Neutral)
  • Newbie Topic Starter
9 years ago
Hi there,

First time poster and user of EAGetMail here.

I downloaded the trial version and everything seemed to be okay (although we only tried it with one email at a time). When we registered our copy, it takes 10-12 seconds to download any particular email.

I used the sample code here (with modifications):

https://www.emailarchitect.net/eagetmail/kb/vbnet.aspx?cat=5 



I added an HTML server-side div tag and used it to track the how long it takes to retrieve a particular email:

Email 2 retrieve attempt 21/06/2016 3:24:37 pm
Retrieved 21/06/2016 3:24:47 pm

The parts in between are these three lines here:

Dim info As MailInfo = infos(i)
' Console.WriteLine("Index: {0}; Size: {1}; UIDL: {2}", _
info.Index, info.Size, info.UIDL)

' Receive email from Gmail server
Dim oMail As Mail = oClient.GetMail(info)


It seems to struggle to get an email, and then after about 10-15 emails I see this error:

A socket operation failed because the destination host was down

This happens on this line:

oMail = oClient.GetMail(info)

Now, I did try opening the ports in Windows Firewall after reading this post:

https://www.emailarchitect.net/forum/yaf_postst1171_Error.aspx#post2438 

It didn't seem to make a difference, however.

So my question is this: what else can I do to fix this and speed up the retrieval of each email?

Thank you.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
9 years ago
Hi, Thanks for using EAGetMail.

it is not about firewall, because you can connect the server.
Could you generate a log file with LogFileName property and send it to support@emailarchitect.net
asenour
  • asenour
  • 52.25% (Neutral)
  • Newbie Topic Starter
9 years ago
Hi Ivan,

I'm sorry, I don't understand what it is that you want me to do exactly. How do I generate the log? Where is the LogFileName property? Thanks.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
9 years ago

oClient.LogFileName = "d:\maillog.txt"
oClient.Connect(oServer)

asenour
  • asenour
  • 52.25% (Neutral)
  • Newbie Topic Starter
9 years ago
Actually, I just figured out what you meant. Sending the email to support@emailarchitect.net. Thanks.
Buddhika1991
7 years ago
Hi, could you please let me know how you fixed this issue? I'm getting the same error but the physical connectivity with the mail server is okay. Not sure why this error is coming up.

Error :
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in EAGetMail45.dll
A socket operation failed because the destination host was down



Below is the log extract :

Resolving server ...
Server: xxxxxxxxxxxxxxxxxxx
Port: 110
AuthType: AuthLogin
User: xxxxxxxxxxxxxxxxxxx
Password: xxxxxxxxxxxxxxxxxxx
Alias:
SSLConnection: False
SSLType: ConnectSSLAuto
Protocol: Pop3
SocksProxyServer:
SocksProxyPort: 1080
SocksProxyUser:
SocksProxyPassword:
ProxyProtocol: Socks5

Create socket InterNetwork,Stream,Tcp ...
Start to connecting ...
xxxxxxxxxxxxxxxxxxx, 110
Connected
ivan
  • ivan
  • 100% (Exalted)
  • Administration
7 years ago
Hi, could you use telnet to test port 110 and see if it returned +OK...
https://www.emailarchitect.net/eagetmail/kb/csharp.aspx?cat=0#using-telnet-to-detect-networking-connection-to-pop3-server 

PS: did you have any anti-virus software installed?

Hi, could you please let me know how you fixed this issue? I'm getting the same error but the physical connectivity with the mail server is okay. Not sure why this error is coming up.

Error :
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in EAGetMail45.dll
A socket operation failed because the destination host was down



Below is the log extract :

Resolving server ...
Server: xxxxxxxxxxxxxxxxxxx
Port: 110
AuthType: AuthLogin
User: xxxxxxxxxxxxxxxxxxx
Password: xxxxxxxxxxxxxxxxxxx
Alias:
SSLConnection: False
SSLType: ConnectSSLAuto
Protocol: Pop3
SocksProxyServer:
SocksProxyPort: 1080
SocksProxyUser:
SocksProxyPassword:
ProxyProtocol: Socks5

Create socket InterNetwork,Stream,Tcp ...
Start to connecting ...
xxxxxxxxxxxxxxxxxxx, 110
Connected

Originally Posted by: Buddhika1991 



Buddhika1991
7 years ago
Hi, thanks for the response.

Yeah I checked the port via telnet. It returns okay.
No there were no new programs installed recently, nor any firewall changes. This has been working fine for the past few weeks. I got this error today only.

Buddhika1991
7 years ago
I get below error after switching on SSL.

Authentication failed because the remote party has closed the transport stream.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
7 years ago

I get below error after switching on SSL.

Authentication failed because the remote party has closed the transport stream.

Originally Posted by: Buddhika1991 



I saw you set SSLConnection: False, is it the full log, to solve the issue quickly, please send information to support@emailarchitect.net directly.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.