Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read a message from gmail
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01588819
Message ID:
01589510
Vues:
70
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
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform