Parsing Outlook Message Files in Python
Contents
[
Hide
]
Aspose.Email - Parsing Outlook Message Files
To Parse Outlook Message Files using Aspose.Email Java for Python, Use following code.
Python Code
mapiMessage = self.MapiMessage
outlook_message_file = mapiMessage.fromFile(self.dataDir + "Message.msg")
\# Display sender's name
print "Sender Name : "
print outlook_message_file.getSenderName()
#Display Subject
print "Subject : "
print outlook_message_file.getSubject()
\# Display Body
print "Body : "
print outlook_message_file.getBody()
Download Running Code
Download Parsing Outlook Message Files (Aspose.Email) from any of the below mentioned social coding sites: