Adding MapiJournal to PST in PHP

Aspose.Email - Adding MapiJournal to PST

To Add MapiJournal to PST using Aspose.Email Java for PHP, simply invoke AddMapiJournalToPST module. Here you can see example code.

PHP Code

 $d1 = new Date();

$calendar=new Calendar();

$cl = $calendar->getInstance();


$cl->add($calendar->HOUR, 1);

$d2 = $cl->getTime();

$journal = new MapiJournal("daily record", "called out in the dark", "Phone call", "Phone call");



$personalStorage=new PersonalStorage();

$fileFormatVersion=new FileFormatVersion();

$pst = $personalStorage->create($dataDir . "JournalPST.pst", $fileFormatVersion->Unicode);

$standardIpmFolder=new StandardIpmFolder();

$journal_folder = $pst->createPredefinedFolder("Journal", $standardIpmFolder->Journal);


print "Added MapiJournal Successfully.".PHP_EOL;

Download Running Code

Download Adding MapiJournal to PST (Aspose.Email) from any of the below mentioned social coding sites: