Hi Eric,
The MAPI class returns whatever is stored in the message property. You can try to get long file name using GetLongPathName Win API function.
DECLARE INTEGER GetLongPathName IN Kernel32 ;
STRING lpszShortPath, STRING @lpszLongPath, INTEGER @cchBuffer
lcBuffer = SPACE(256)
lnBuffLen = 256
? GetLongPathName(lcShortName, @lcBuffer, @lnBuffLen )
lcLongName = LEFT(lcBuffer, AT(CHR(0), lcBuffer)-1)
>Hello,
>
>I am using the mapi mail class from Nigel B Coates and everything works fine.
>
>But now i am having a problem with retrieving the files from the attachment from an e-mail.
>
>When i use GetattachmentFile it returns something like c:\Documen~\local s~\.....\Agenda_0.txt While the filename of the attachment file is Agenda_0025.txt. It seems to be that it returns the old DOS path name instead of the windows name.
>
>Can someone please help me out on this.
>
>Thanks
>
>Eric de Bruin
--sb--