在 PHP 中向 PST 添加 MapiCalendar

Aspose.Email - 将 MapiCalendar 添加到 PST

要使用 Aspose.Email Java for PHP 将 MapiCalendar 添加到 PST,只需调用 AddMapiCalendarToPST 模块。此处可查看示例代码。

PHP 代码


 # Create the appointment

$appointment =new MapiCalendar(

"LAKE ARGYLE WA 6743",

"Appointment",

"This is a very important meeting :)",

new Date(2012, 10, 2),

new Date(2012, 10, 2, 14, 0, 0));

\# Create the meeting

$attendees = new MapiRecipientCollection();

$mapiRecipientType=new MapiRecipientType();

$attendees->add("ReneeAJones@armyspy.com", "Renee A. Jones", $mapiRecipientType->MAPI_TO);

$attendees->add("SzllsyLiza@dayrep.com", "Szollosy Liza", $mapiRecipientType->MAPI_TO);

$meeting = new MapiCalendar(

"Meeting Room 3 at Office Headquarters",

"Meeting",

"Please confirm your availability.",

new Date(2012, 10, 2, 13, 0, 0),

new Date(2012, 10, 2, 14, 0, 0),

"CharlieKhan@dayrep.com",

$attendees

);

$personalStorage=new PersonalStorage();

$fileFormatVersion=new FileFormatVersion();

$standardIpmFolder=new StandardIpmFolder();

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

$calendar_folder = $pst->createPredefinedFolder("Calendar", $standardIpmFolder->Appointments);

print "Added MapiCalendar Successfully.".PHP_EOL;

下载运行代码

从以下任意提到的社交编程网站下载 Adding MapiCalendar to PST (Aspose.Email)