在 PHP 中创建并保存 Outlook 备注

Aspose.Email - 创建和保存 Outlook 笔记

要使用 Aspose.Email Java for PHP 创建 Outlook 便笺,只需调用 CreateOutlookNote 模块。以下是示例代码。

PHP 代码


 $note = new MapiNote();

$note->setSubject("Blue color note");

$note->setBody("This is a blue color note");

$noteColor=new NoteColor();

$note->setColor($noteColor->Blue);

$note->setHeight(500);

$note->setWidth(500);

$noteSaveFormat=new NoteSaveFormat();

$note->save($dataDir . "MapiNote.msg", $noteSaveFormat->Msg);

print "Created outlook note successfully.".PHP_EOL;

下载运行代码

从以下任意提到的社交编码站点下载 创建和保存 Outlook 便笺 (Aspose.Email)