Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: pop3 vbscript get 10060 on first run.
drejabi

From: stockholm, Sweden
Posts: 2
Member Since: 04/18/04
posted April 18, 2004 7:25 PM

Hi, I've a test script that does two things,
checks if there are any messages in the mbox
If so, get them...
But lately the script seems to stop with error 10060 when executing "Pop1.Get msgContent, MsgNum"
If I rerun the script directly it works without error! I've have not rebooted the server that's running the script, but did so with the exchange 2003 server, same error!

Belowe som extracts from the code.

'
Set Pop1 = CreateObject("Dart.Pop.1")
Pop1.Timeout = 30000
Pop1.Login mailserver, id,pass 'Logon the server

NumOfMsgs = Pop1.Count 'Fetch the # of Msg's
----

And a function that retrieves msg's
=====================================
Pop1.AttachmentDirectory = ""

'Next Row, ret error 10060!
Pop1.Get msgContent, MsgNum

Regards
Drejabi
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 18, 2004 7:40 PM

The error means that, for whatever reason, the server closed the connection before we received the repsonse to the command. Try increasing your timeout value.
drejabi

From: stockholm, Sweden
Posts: 2
Member Since: 04/18/04
posted April 19, 2004 1:33 AM

might be so, but we ex2003 pop3 protocol indicates that a session is alive, which timeouts after 30sec!
--
if I restart the script immediate after the "error" it runs just fine!

Note. The Pop1.Count property works ok, but trying to Get mails gives the error code...

Any ideas? besides timeout value?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 19, 2004 7:25 AM

Maybe the server sent an Invalid response code? Try turning on tracing via the Trace method and see if the trace log gives any clues.
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX