--- shell/source/win32/simplemail/senddoc.cxx	2005-02-08 11:09:48.562500000 +0530
+++ shell/source/win32/simplemail/senddoc.cxx	2005-02-09 13:59:06.140625000 +0530
@@ -64,7 +64,7 @@
 #endif
 
 #ifndef _RTL_STRING_HXX_
-//#include <rtl/string.hxx>
+#include <rtl/string.hxx>
 #endif
 
 #ifndef INCLUDED_SIMPLEMAPI_HXX
@@ -99,6 +99,7 @@
     StringList_t gCc;
     StringList_t gBcc;
     StringList_t gAttachments;
+	StringList_t gAttachFilenames;
     int gMapiFlags = 0;
 }
 
@@ -172,7 +173,11 @@
     {
         MapiFileDesc mfd;
         ZeroMemory(&mfd, sizeof(mfd));
+
         mfd.lpszPathName = const_cast<char*>(iter->c_str());    
+		rtl::OString aFullPath( mfd.lpszPathName );
+		gAttachFilenames.push_back( (const sal_Char *) aFullPath );
+		mfd.lpszFileName = const_cast<char*>(gAttachFilenames.back().c_str());    
         mfd.nPosition = sal::static_int_cast<ULONG>(-1);
         pMapiAttachmentList->push_back(mfd);        
     }            
