Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Mapimail.vcx
Message
From
26/02/2001 17:58:27
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00477327
Message ID:
00479797
Views:
50
Nigel,
Even using the VFP command window the folowing code returns allways 0(zero)

I see this e-mail in Outlook Express with 2 xls files attached.
Also tried changing the name of send by to other e-mail with files attached.

SET CLASSLIB TO mapimail ADDITIVE
enviado_por = "Rodolpho - Roldsoft" && send by
data_ini = {^2000/01/01} && start Date
data_fim = DATE() && end Date
loMail = CREATEOBJECT("cusMAPI") && Load class for e-mail
lnMail = loMail.ReadMail("","",.F.,enviado_por,"",data_ini, data_fim,.T.)
* IF lnMail > 0 && ** if exist file send by this person
nMensagem = loMail.GetFirstMessage() && ** get the first message
nArqAtachado = loMail.GetAttachmentCount(nMensagem) && ** verify in an file is attached
? nArqAtachado

&& in this sample its the oldest and the first message in main entry box of outlook express.
&& My version of IE is 5.0 from win2K-pro and tested also in w98 with IE5.0
( both Portuguese ) maibe is this the reason ? send the same prg to a friend
and he received 0 from GetAttachmentCount() function.
Is there a reason to dont work ??

TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform