I am trying to get the name of a attachment in the mail using RDCOM client in r.
i am able to get the name of subject and also the text in the body
But i am not able to figure out how to get the name of attachment
OutApp <- COMCreate("Outlook.Application")
outlookNameSpace = OutApp$GetNameSpace("MAPI")
folder <- outlookNameSpace$Folders(1)$Folders(1)
emails <- folder$Items
emails(1)[['Subject']] #Gives me name of subject
emails(1)[['body']] # give me text in body of the mail
emails(1)[['attachments']] # Doesn't give me text. It gives me a pointer like
below
An object of class "COMIDispatch"
Slot "ref":
<pointer: 0x0000000008479448>
Can anyone help me with this problem?