Colin,
You can copy the files to another location or extract them by using the GetAttachmentFile() to tell whatever operation where the file is. While the mail item is open, the attachment files exist. Once you close the mail item, the attachment files will be deleted by the client.
Example: if an attachment file is DBF format you can append from &GetAttachmentFile(1) - I've even imported from excel format attachment files.
>Mark
>
>I am trying to build a similar app to you. My problem is that MapiMail tells me what the attachment files are by name but doesnt allow me to extract them and copy them to another location. Maybe I am missing somthing.
>
>This is the tail end of the code I am using.
>
>oObj=CreateObject("cusmapi")
>oObj.ReadMail(lcusername,lcpassword,lcunread,lcsender,lcsubject,lcstart,lcend,lcfetch)
>for x=1 to ff
>fred(x)=oObj.GetAttachmentFile(x)
>next
>
>array fred thus has the names of the attachments but not how to extract them.
>Any bright ideas?
>
>Colin Northway