mailman.VerifyPopLogin and mailman.VerifyPopConnection are OK but mailman.checkmail -1 error
It works for a while then goes error and stays error even in closing links and re opening, after long while or if new mail arrives it goes ok.
You might be checking the mailbox too often, and Hotmail is temporarily blocking the connection. It's impossible to say for sure though without seeing some of your code, and without seeing the contents of the LastErrorText property. As soon as the call fails, log the LastErrorText property and post it here.
I found this at the Mozilla Thunderbird site, that may be of interest. It appears that Hotmail only allows a certain number of logins within a 15 minute period (the actual number may vary). This means that my suspicion that you may be hitting the server too often and are getting blocked sounds plausible:
Exceeded the login limit for a 15 minute period errors
If you login too often (due to checking for new mail) you may get a The STAT command did not succeed. Error getting message number and sizes. Mail server pop3.live.com responded: Exceeded the login limit for a 15 minute period. Reduce the frequency of requests to the POP3 server error message.
The login limit is enforced by the server, and doesn't appear to be documented. This problem occurs with other email clients too, but doesn't occur with any Microsoft email clients. There isn't any known workaround. Reducing how often Thunderbird checks for new mail in Tools -> Account Settings -> Server Settings -> Check for new mail every X minutes" helps
Yup, the problem is that you are checking the account too often (as described in the Mozilla article snippet I posted above). See this part of your LastErrorText:
STAT PopCmdResp: -ERR Exceeded the login limit for a 15 minute period. Reduce the frequency of requests to the POP3 server. POP3 response indicates failure. Failed to get STAT response Failed
There is nothing you can do about this other than check your mailbox less frequently until the problem goes away (try once every 1 minute, then once every 2 minutes, etc... until you stop getting locked out).
If Hotmail only offers POP3, then you are stuck with that I am afraid. You mentioned that Incredimail checks Hotmail every 5 minutes, but your app was checking every 30 seconds. That is a big difference and probably why Incredimail doesn't get temporarily banned while you app does.
As for MS smart phone apps - they must have their own proprietary method of checking mail that doesn't result in getting banned for frequent connections - notice part of the Mozilla article that I posted says:
The login limit is enforced by the server, and doesn't appear to be documented. This problem occurs with other email clients too, but doesn't occur with any Microsoft email clients. Fairly typical MS approach to cripple other peoples offerings in order to make their own look better by comparison.
It's just Hotmail's POP that fails other POP emails work fine
I'm using it to run a small app in systray to check and notify me of new email MS had killed it's Hotmail app and is now in outlook browser which I do not keep open so I want to replace the old notify capability (I could have checks via other email applications but want to build my own little app) Failed after first check today
------------ Code Snippet -------------------
mailman.MailHost = "pop3.live.com"
mailman.PopUsername = gMail01_USER
mailman.PopPassword = gMail01_PW
mailman.MailPort = 995
mailman.ConnectTimeout = 15
mailman.PopSsl = 1
gMail01_Cnt = mailman.checkmail
If gMail01_Cnt = -1 Then
MsgBox "Error checking email" exit sub
The LastErrorText is cut off because only the MsgBox command can only display so much text. Try putting it in the clipboard instead, then paste it here:
If gMail01_Cnt = -1 Then Clipboard.Clear Clipboard.SetText mailman.LastErrorText MsgBox "Error checking email" exit sub end if
ChilkatLog: CheckMail: DllDate: Dec 12 2012 UnlockPrefix: CAMPAPMAILQ Username: MIA-PC:Mia Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 0 Pop3Connect: Connecting to POP3 server hostname: pop3.live.com port: 995 ssl: 1 connectTimeoutMs: 15000 heartbeatMs: 0 ConnectTimeoutMs_1: 15000 calling ConnectSocket2 IPV6 enabled connect with NO heartbeat. connectingTo: pop3.live.com resolveHostname1: dnsCacheLookup: pop3.live.com Resolving domain name (IPV4) --resolveHostname1 GetHostByNameHB_ipv4: Elapsed time: 0 millisec myIP_1: 192.168.0.11 myPort_1: 53085 connect successful (1) clientHelloMajorMinorVersion: 3.1 buildClientHello: majorVersion: 3 minorVersion: 1 numRandomBytes: 32 sessionIdSize: 0 numCipherSuites: 10 numCompressionMethods: 1 --buildClientHello readIncomingTls_serverHello: processTlsRecord: processHandshake: handshakeMessageType: ServerHello handshakeMessageLen: 0x46 processHandshakeMessage: MessageType: ServerHello Processing ServerHello... ServerHello: MajorVersion: 3 MinorVersion: 1 SessionIdLen: 32 CipherSuite: RSA_WITH_RC4_128_MD5 CipherSuite: 00,04 CompressionMethod: 0 Queueing ServerHello message. ServerHello is OK. --ServerHello --processHandshakeMessage handshakeMessageType: Certificate handshakeMessageLen: 0x98e processHandshakeMessage: MessageType: Certificate ProcessCertificates: Certificate: derSize: 1313 certSubjectCN: pop3.live.com certSerial: 1121FB2A7C6A4A08340AD3DAC161B704DD21 certIssuerCN: GlobalSign Organization Validation CA - G2 --Certificate Certificate: derSize: 1124 certSubjectCN: GlobalSign Organization Validation CA - G2 certSerial: 0400000000012F4EE1450C certIssuerCN: GlobalSign Root CA --Certificate NumCertificates: 2 Queueing Certificates message... --ProcessCertificates --processHandshakeMessage handshakeMessageType: ServerHelloDone handshakeMessageLen: 0x0 processHandshakeMessage: MessageType: ServerHelloDone Queueing HelloDone message. --processHandshakeMessage --processHandshake --processTlsRecord --readIncomingTls_serverHello HandshakeQueue: MessageType: ServerHello MessageType: Certificate MessageType: ServerHelloDone --HandshakeQueue Dequeued ServerHello message. Dequeued Certificate message. DequeuedMessageType: ServerHelloDone OK to ServerHelloDone! No client certificate required by the server. Encrypted pre-master secret with server certificate RSA public key is OK. Sending ClientKeyExchange... Sent ClientKeyExchange message. Sending ChangeCipherSpec... Sent ChangeCipherSpec message. Derived keys. Installed new outgoing security params. Sending FINISHED message.. algorithm: arc4 keyLength: 128 Sent FINISHED message.. readIncomingTls_changeCipherSpec2: processTlsRecord: processChangeCipherSpec: ccsProtocolType: 1 --processChangeCipherSpec --processTlsRecord --readIncomingTls_changeCipherSpec2 readIncomingTls_handshakeFinished2: processTlsRecord: processHandshake: handshakeMessageType: HandshakeFinished handshakeMessageLen: 0xc processHandshakeMessage: MessageType: HandshakeFinished FinishedMsgLen: 12 Queueing Finished message. --processHandshakeMessage --processHandshake --processTlsRecord --readIncomingTls_handshakeFinished2 Dequeue the FINISHED message... Dequeued Finished message. Handshake completed successfully. Secure Channel Established. Connected to POP3 server Turning on TCP_NODELAY. socketOptions: SO_SNDBUF: 8192 SO_RCVBUF: 8192 TCP_NODELAY: 8193 --socketOptions PopCmdResp: +OK BLU0-POP303 POP3 server ready greeting: +OK BLU0-POP303 POP3 server ready ConnectionType: SSL/TLS --Pop3Connect Pop3Authenticate: username: firstname.lastname@example.org popSPA: 0 PopCmdSent: USER email@example.com PopCmdResp: +OK password required PopCmdSent: PASS **** PopCmdResp: +OK POP3 authentication success --Pop3Authenticate PopCmdSent: STAT PopCmdResp: -ERR Exceeded the login limit for a 15 minute period. Reduce the frequency of requests to the POP3 server. POP3 response indicates failure. Failed to get STAT response Failed. --CheckMail --ChilkatLog
Wonder how non MS smart phone apps can immediately BING when new message on my Hotmail account? Incredimail checks my hotmail every 5 min and never flagged issue.
is there another way to check MS Hotmail for new mail - it's not imap :( which would be nice - MS hosts my email on it's servers
Any alternative options for checking new emails arriving and/or email count
Thanks for your help, most appreciated
and grumbles to Microsoft again. lol