Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check email from VFP 5
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00128672
Message ID:
00128705
Vues:
30
You can do this with the MAPI controls. First, set the message control's FetchUnreadOnly property to .T. Then you can use the control's Fetch() method to get new messages. Something like this:
WITH THISFORM.oleMessage
  .Fetch()  && Get any new messages
  IF .MsgCount>0  && See if there are any new messages
    FOR i=0 TO (.MsgCount-1) && Loop through the message set
      .MsgIndex=i
      && Process message here			
    ENDFOR
  ENDIF
ENDWITH
>Does anyone know of a simple way to check email from VFP? I would like to be able to have a VFP form running minimized that uses a timer to dial up, sign on, and check email every X minutes. (I realize there may be email packages that provide this, but I need to do this from VFP at predetermined time intervals without interaction from a user.)
>
> I have looked at the MAPI controls and I'm not sure I have an understanding of what I need to do to accomplish this. The Solutions sample shows sending email, but I have not been able to make succesful modifications to it. A third-party control is an option.
>
>Thanks for any assistance,
>
>Patric Ainsworth
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform