Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect when new e-mail arrives?
Message
From
11/07/2006 17:40:34
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01135383
Message ID:
01135536
Views:
11
Oh, I forgot to mention that I need not to use e-mail clients, in other words, I need to communicate with the e-mail server from my application directly and using a specific e-mail account.


>
#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
Reply
Map
View

Click here to load this message in the networking platform