Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comparing the mail content through QTP/DP
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
This is a script for reading an email from outlook inbox, and copying it to a notepad file and deleting that particular mail from inbox

Code:
Set MailItem = createobject("outlook.application")
Set mailfolder = MailItem.GetNameSpace("Mapi").pickfolder

Set fo = createobject("scripting.filesystemobject")
Set f = fo.createtextfile(<filepath>)

f.writeline "Sender: "&mailfolder.items(1).sendername
f.writeline ""
f.writeline "Subject: "&mailfolder.items(1).subject
f.writeline ""
f.writeline "Sent On: "&mailfolder.items(1).senton
f.writeline ""
f.writeline "Body: "&vbcrlf&mailfolder.items(1).body

mailfolder.items(1).delete
Reply


Messages In This Thread
RE: Comparing the mail content through QTP/DP - by chaitanyaponangi - 06-17-2009, 03:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Read Content inside PDF kotaramamohana 0 1,203 09-02-2020, 05:49 PM
Last Post: kotaramamohana
  Comparing two unsorted excel columns ProTester 2 2,802 09-13-2018, 02:11 PM
Last Post: ProTester
  how to write the content obtained using the method GetPdfText Anisha 0 1,436 10-24-2017, 08:49 PM
Last Post: Anisha
Rolleyes Urgent help with Gmail Sending mail feature nidhitaneja 2 2,926 03-05-2014, 09:39 PM
Last Post: nidhitaneja
  How To pick up the particular mail in Post Login Gmail page and click on Checkbox akhandesh 0 2,847 12-02-2013, 01:35 PM
Last Post: akhandesh

Forum Jump:


Users browsing this thread: 1 Guest(s)