Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect when new e-mail arrives?
Message
 
To
11/07/2006 12:12:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01135383
Message ID:
01135485
Views:
12
#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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform