Adding Files to PST in Python
Contents
[
Hide
]
Aspose.Email - Adding Files to PST
To Add Files to PST using Aspose.Email Java for Python, Use following code.
Python Code
personalStorage = self.PersonalStorage
fileFormatVersion = self.FileFormatVersion
pst = personalStorage.create(self.dataDir + "AddFile1.pst", fileFormatVersion.Unicode)
standardIpmFolder = self.StandardIpmFolder
fi = pst.createPredefinedFolder("Inbox", standardIpmFolder.Inbox)
fi.addFile(self.dataDir + "Report.xlsx", "IPM.Document.Excel.Sheet.8")
pst.dispose()
print "Added file to PST"
Download Running Code
Download Adding Files to PST (Aspose.Email) from any of the below mentioned social coding sites: