General information
Title:
NBC MAPI Mail class - Read attachment
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only