Adding Files to PST in PHP
Contents
[
Hide
]
Aspose.Email - Adding Files to PST
To Add File to PST using Aspose.Email Java for PHP, simply invoke AddFileToPST module. Here you can see example code.
PHP Code
$personalStorage=new PersonalStorage();
$fileFormatVersion=new FileFormatVersion();
$pst = $personalStorage->create($dataDir . "AddFile1.pst", $fileFormatVersion->Unicode);
$standardIpmFolder=new StandardIpmFolder();
$fi = $pst->createPredefinedFolder("Inbox", $standardIpmFolder->Inbox);
$fi->addFile($dataDir . "Report.xlsx", "IPM.Document.Excel.Sheet.8");
$pst->dispose();
print "Added file to PST".PHP_EOL;
Download Running Code
Download Adding Files to PST (Aspose.Email) from any of the below mentioned social coding sites: