Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Microsft Outlook Email and QTP
#2
Not Solved
Hi Siri,

Try with the below.

Code:
Set olApp = CreateObject("Microsoft.Outlook")
Set olns = olApp.GetNameSpace("MAPI")
Set objFolder = olns.GetDefaultFolder(2)
For each item in objFolder.Items
    If item.Unread Then
        msgbox item.body
    EndIf
Next
Reply


Messages In This Thread
Microsft Outlook Email and QTP - by siri - 01-04-2010, 12:53 PM
RE: Microsft Outlook Email and QTP - by sreekanth chilam - 01-04-2010, 01:22 PM
RE: Microsft Outlook Email and QTP - by Saket - 01-04-2010, 01:34 PM
RE: Microsft Outlook Email and QTP - by siri - 01-04-2010, 02:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting Email Body from Outlook waseem.khan.91 0 1,956 03-04-2019, 02:53 PM
Last Post: waseem.khan.91
  Extracting Email Body from Outlook waseem.khan.91 0 1,061 03-01-2019, 02:51 PM
Last Post: waseem.khan.91
  Find the email using subject with the help of vb script Raheem Shaik 0 1,480 12-12-2018, 02:57 PM
Last Post: Raheem Shaik
  Cannot attach the text file to email arpan 2 3,301 07-19-2013, 12:13 AM
Last Post: arpan
  Unable to send an email from Outlook which is already opened as draft attiliv 0 2,163 03-24-2013, 11:14 AM
Last Post: attiliv

Forum Jump:


Users browsing this thread: 1 Guest(s)