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