-
Junior Member
Re: Automate MS Outlook Operations using QTP?
Deepa....thanks again...whatever you suggest we can go ahead but the real issue we face is how can we make QTP identify Outlook objects or how to work with the outlook object model to verfiy an email(sender,sub,body)....
It would very helpful for me if you can provide me any sort of input for this.
-
Expert Member
Re: Automate MS Outlook Operations using QTP?
Hai arijit2111,
Set OutlookApplication = CreateObject("Outlook.Application")
Set Mail = OutlookApplication.CreateItem(0)
Mail.To = "abc@test.com" 'Enter your mail id here
Mail.Subject = "test"
Mail.Body = "this is a test"
Mail.display
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys("%s")
Set Mail = Nothing
In the above code you can view to whom you are sending the mail, subject and with this statement "Mail.display" the mail will be opened in the front end. Grab to, subject and body from the mail and store the values in variable.
Open an excel sheet it should contain to, subject, body to verify to whom the mail will be sent. So you can compare excel sheet with the values you have already stored in a variable.
Thanks
Deepa
-
Junior Member
Re: Automate MS Outlook Operations using QTP?
Hi,
I have 1 req.. say a mail is send to my outlook from my application..
i want to open that mail from my inbox and check its TO list, CC list, Body and Subject fields against a standard template..
can u plss tell me how to do it ASAp.. its quite urgent
-
Junior Member
Re: Automate MS Outlook Operations using QTP?
Hi,
I need QTP script to edit the outlook contacts.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules