Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#Define olFolderInBox 6
Create Cursor myCursor (subject c(40))
Local oOutlook,oNameSpace,oDefaultFolder
oOutlook = Createobject('outlook.application')
oNameSpace = oOutlook.getnamespace('MAPI')
oDefaultFolder=oNameSpace.GetDefaultFolder(olFolderInBox)
oItems = oDefaultFolder.items
For Each oItem In oItems
If oItem.unread = .T. && Assuming you only want the unread messages.
Insert Into myCursor (Subjectl) Values (oItem.subject)
Endif
Endfor