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:
01588843
Vues:
42
Hi Bernard,

Probably I don't understand... :)

What I think I understood is you want to be able to register some action that you would send via smartphone email. Then you want these emails to be read automatically, and save some information that is in it into vfp tables.

The way you want to do it, I would not know how to. In fact you're re-writing an email client no? Hopefully someone else can help you the way you want to do it.

Why not simply let an existing email client like outlook read (download) the email and with vfp read what outlook has downloaded. Alternatively you could write a script in VBA Outlook that retrieves the information and save that in your dbf tables via odbc. Every 3 seconds seems a bit much but I have developed an application that was able to print an email that was sent in the way you suggest, but I polled (accessed the email) every minute.

Good luck.





>hi marc,
>
>i founded this today…
>
>http://www.example-code.com/foxpro/imap_readMail.asp
>
>perhaps it is possible …?
>
>I am in a company. ( Morning ).
>i have a smartphone
>I want to point ( pointeuse )
>first , I send a message on presence@gmail.com with subject = “customer 1234 want point"
>my server e-mail reads every 3 seconds the messages from presence@gmail.com
>he read “customer 1234 want point" => open table Presence.dbf => id = 1234 , presence = .T. , date = date()
>
>etc …..
>
>i hoop you understand ?
>
>bernhart
>
>
>>Hi Bernard,
>>
>>From what I read, the only thing that has to do with gmail is the recepient's email no? You send the email via your own smtp server, so I guess the inbound email comes to you via an email client like outlook. You might want to grab Outlook in COM (something like createobject("outlook.application") and then find the email in your inbox.
>>
>>Let me know if I'm on the right track and if you need support in the outlook part. It's not difficult but it might be a bit of work to find your way in that.
>>
>>Kind regards,
>>
>>Marc
>>
>>
>>>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

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform