- Code: Select all Expand view
function ReadMail()
local oOutlook, oInspector, oMailItem
oOutlook = TOleAuto():New( "Outlook.Application" )
oInspector = oOutlook:ActiveInspector()
oMailItem = oInspector:CurrentItem()
MsgInfo( oMailItem:Body )
return nil