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

Re: Problem Retreiving emails from gmail/hotmail

$
0
0
Re: Problem Retreiving emails from gmail/hotmail
West Wind Client Tools
Re: Problem Retreiving emails from gmail/hotmail
12/15/2011
12:13:05 PM
3DU0Q6UMB Show this entire thread in new window
From:
To:
Attachments:
None
Using vfp,what alternatives are available?


I suspect this won't work because these services require SSL. wwPop3 doesn't support SSL connections. Only the wwSmtp component supports SSL at this point.

+++ Rick ---


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