PHP में नया PST बनाएं
Contents
[
Hide
]
Aspose.Email - नया PST बनाना
Aspose.Email Java for PHP का उपयोग करके नया PST बनाने के लिए, बस CreatePST मॉड्यूल को कॉल करें। यहाँ आप उदाहरण कोड देख सकते हैं।
PHP कोड
# Create an instance of PersonalStorage
$personalStorage=new PersonalStorage();
$pst = $personalStorage->create($dataDir . "sample1.pst", 0);
\# Create a folder at root of pst
$pst->getRootFolder()->addSubFolder("myInbox");
\# Add message to newly created folder
$mapi_message = new MapiMessage();
$pst->getRootFolder()->getSubFolder("myInbox")->addMessage($mapi_message->fromFile($dataDir . "Message.msg"));
print "Created PST successfully.".PHP_EOL;
चल रहा कोड डाउनलोड करें
नीचे उल्लेखित किसी भी सामाजिक कोडिंग साइट से Create New PST (Aspose.Email) डाउनलोड करें: