Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect when new e-mail arrives?
Message
 
À
11/07/2006 12:12:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01135383
Message ID:
01135485
Vues:
13
#DEFINE VFPCOM_CLSID  'VFPCOM.COMUTIL'
#DEFINE OUTLOOK_CLSID  'OUTLOOK.APPLICATION'
public goVFPCOM, goOutlook, goLink
goVFPCOM = create(VFPCOM_CLSID)
goOutlook = create(OUTLOOK_CLSID)
goLink = create('OutlookApplicationEvents')
goVFPCOM.BindEvents(goOutlook, goLink)
DEFINE CLASS OutlookApplicationEvents AS custom
  PROCEDURE ItemSend(Item,Cancel)
  ENDPROC
  PROCEDURE NewMail
  MessageBox('New Mail Has Arrived')
  ENDPROC
  PROCEDURE OptionsPagesAdd(Pages)
  ENDPROC
  PROCEDURE Quit
  ENDPROC
  PROCEDURE Reminder(Item)
  ENDPROC
  PROCEDURE Startup
  ENDPROC
ENDDEFINE
>Hi friends,
>
>I have an application that needs to know when a new e-mail message has arrived to a certain e-mail account and automatically download the attached files. I already know how to download attached files from an e-mail message, but I really need to download those attached files as soon as the e-mail message has arrived to the e-mail server. Can anybody help me on this?
>
>TIA
>
>Luis
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform