Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NBC MAPI Mail class - Read attachment
Message
From
27/05/2008 01:18:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
NBC MAPI Mail class - Read attachment
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01319594
Message ID:
01319594
Views:
77
I m using NBC MAIP Mail Class to read attachment.

But It only allow read 1st email's attachment.

What wrong with my code? Thanks




mNumberOfMail =THISFORM.Cusmapi1.ReadMail()
IF mNumberOfMail > 0
FOR mMailCnt = 1 TO mNumberOfMail

mSender = 'Sender : '+THISFORM.CusMapi1.GetSender(mMailCnt)
mSubject = 'Subject : '+THISFORM.CusMapi1.GetSubject(mMailCnt)
mBody = THISFORM.CusMapi1.GetBodyText(mMailCnt)
mCount = THISFORM.CusMapi1.GetAttachmentCount(mMailCnt)
IF mCount > 0
FOR mAttachFileCnt = 1 TO mCount
mAttachFile = THISFORM.CusMapi1.GetAttachmentFile(mAttachFileCnt)
MESSAGEBOX(mAttachFile) &&Show Only 1st Email's Attachment
ENDFOR
ENDIF
ENDFOR
ENDIF
Next
Reply
Map
View

Click here to load this message in the networking platform