Custom Search

Thursday, October 25, 2012

How to get Subject and body from the Outlook mail


set olApp=createObject("Outlook.Application")
set olns=olApp.GetNameSpace("MAPI")
set objFolder=olns.GetDefaultFolder(6)
for each item1 in objFolder.items
if item1.unread then
msgbox item1.subject
msgbox item1.body
end if
next

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.