Parsing Outlook Message Files in PHP

Aspose.Email - Parsing Outlook Message Files

To Parse Outlook Message file using Aspose.Email Java for PHP, simply invoke ParseOutlookMessageFile module. Here you can see example code.

PHP Code


 $mapiMessage=new MapiMessage();

$outlook_message_file = $mapiMessage->fromFile($dataDir . "Message.msg");

\# Display sender's name

print "Sender Name : " . $outlook_message_file->getSenderName();

#Display Subject

print "Subject : " . $outlook_message_file->getSubject();

\# Display Body

print "Body : " . $outlook_message_file->getBody();

Download Running Code

Download Parsing Outlook Message Files (Aspose.Email) from any of the below mentioned social coding sites: