Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Problem Retreiving emails from gmail/hotmail

$
0
0
Problem Retreiving emails from gmail/hotmail
West Wind Client Tools
Problem Retreiving emails from gmail/hotmail
12/15/2011
09:43:38 AM
3DU0KUMZC Show this entire thread in new window
From:
To:
All
Attachments:
None
I downloaded the latest client tools and copied code from wwpop3 to download email from gmail, or hotmail, or yahoo.
I get a connection timeout error every time. What am I missing?
Here is the sample code I extracted:

#INCLUDE wconnect.h

SET PROCEDURE TO wwPOP3 ADDITIVE
SET PROCEDURE TO wwUTILS additive
SET PROCEDURE TO wwAPI ADDITIVE
SET PROCEDURE TO wwSocket ADDITIVE

loPOP = CREATEOBJECT("wwPOP3")

loPop.cMailServer = "mail.someserver.com"
loPop.cUserName = "test"
loPop.cPassword = "password"

*** Optional settings

*** Create a log string
*loPop.lLogSession = .T.
loPop.nTimeout = 15 && Seconds
loPop.nBufferSize = 1024

IF !loPOP.Connect()
MESSAGEBOX("Error connecting. Error#=" + ALLTRIM(STR(loPop.nError)) + ". '" + loPop.cErrorMsg + "'")
? loPop.nError,loPop.cErrorMsg
RETURN
ENDIF

MESSAGEBOX("#Messages=" + STR(loPop.nMessageCount))
? loPop.Getmessages() && High level routine

x=1

loPop.quit()




Viewing all articles
Browse latest Browse all 10393

Trending Articles