You should be using the wwSmtp class to send messages. Same interface but newer implementation with a host of fixes. If you're sending with Gmail's servers you need to use the newer .NET based SMTP client which is required in order to use SSL.
For receiving messages there's the wwPop3 class. Not sure offhand if that works with GMail - depending on whether they allow unencrypted connections (non-SSL) for Pop3.
There's more info in the documentation. FWIW, the wwPop3 component was meant as a quick and dirty mail scanner, not as a full blown email client library so there are some content formatting issues - it doesn't handle all message formats. Basic things like text, HTML, RTF work, but some older text formats/Mime are not properly parsed.
+++ Rick ---
>Hi all,
>
>it's possible to read or receive the Content of a message on a server mail ( gmail.com ) with VFP 9 ?
>
>I should like a sample….
>
>ex
>SET CLASSLIB TO c:\cdbk90\common30\libs\wwipstuff.vcx
> LOCAL losmtp AS wwipstuff
> losmtp=CREATEOBJECT("wwIPStuff")
> losmtp.cmailserver="relay.skynet.be"
>
> losmtp.csenderemail="
support@amline.be"
> losmtp.csendername="bernhart MILCENT"
>
> *-- Bénéficiaire.
> losmtp.crecipient = "
lesbouleaux337@gmail.com"
> losmtp.csubject="wwIPStuff Test Message"
>
> *** Set up Messages - first part plain text
> losmtp.cmessage="
Who said this had to be difficult, bra?"
> losmtp.ccontenttype = "text/html"
> losmtp.ccontenttypealternate = "text/html"
> llresult = losmtp.sendmail()
> IF !llresult
> WAIT WINDOW losmtp.cerrormsg
> ENDIF
>
>*************************************************
>
>The question :
>Now i want read message from losmtp.crecipient = "
lesbouleaux337@gmail.com"….
>
>i't is possible with wwipstuff ?
>
>
>Thank in a advance