Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comparing the mail content through QTP/DP
#1
MyBB 
Hi Friends,

I want to fatch a particular mail from inbox and send as a text file to a desired location. After the mail is exported as a text file, that mail should be erased from inbox. From the text file, I can compare the mail content and publish the result. Do you have any idea to do this functionality using QTP. if anybody having the script to do this functioanlity. please mail me.

Thanks
Jegan.
gsjegan@gmail.com.
Reply
#2
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Read Content inside PDF kotaramamohana 0 1,722 09-02-2020, 05:49 PM
Last Post: kotaramamohana
  Comparing two unsorted excel columns ProTester 2 3,484 09-13-2018, 02:11 PM
Last Post: ProTester
  how to write the content obtained using the method GetPdfText Anisha 0 1,832 10-24-2017, 08:49 PM
Last Post: Anisha
Rolleyes Urgent help with Gmail Sending mail feature nidhitaneja 2 3,476 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 3,317 12-02-2013, 01:35 PM
Last Post: akhandesh

Forum Jump:


Users browsing this thread: 1 Guest(s)