IMAP Email Body and Attachments Missing?Back
(I am using the IMAP componet to connect to "microsoft exchange server") 1) When my code below runs the "email.Body" property is always blank..even though there is data in each email scanned? 2) The emails always contain attachments and the "Imap.GetMailNumAttach(email)" does return the correct number of attachments in each email This statement does iterate though each attachment in each email ok. But the SaveAttachedFile statement does not actually save the filename (to the "c:\Temp" folder) No Attachments appear to be saved at all
For intii = 0 To Imap.GetMailNumAttach(email) - 1
email.SaveAttachedFile(intii, "C:\temp")
Next
Please could you tell me what I am doing wrong
Answer: |