Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    retrieving emails


    i need to send and retrieve emails through qtp;
    sending mails works (with cdo);
    but i can't retrieve mails; i tried the code from the mercury knowledge base (id 41451), but they use outlook and i always get the security messages, so i am searching for a way to read the inbox not using outlook;
    has anyone a solution for me?

    thx, michaela

  2. #2

    Re: retrieving emails

    Does you email have a webmail interface you could use?

  3. #3

    Re: retrieving emails

    no, there is no web interface;

  4. #4

    Re: retrieving emails

    [ QUOTE ]
    no, there is no web interface;

    [/ QUOTE ]

    What method would you use to view the emails manually?

  5. #5

    Re: retrieving emails

    if i would do it manually, i would do the following: check outlook for mails of a certain sender and then save the attachement to the file system;

    and now i have to do the same automated: check the inbox and save the attachment from a certain message to the file system;
    it also should be the inbox of a test user, not mine;

    (and then compare two files from the file system);

  6. #6

    Re: retrieving emails

    Apologies if this is not possible with outlook as I have only used QTP on web apps, but cannot you not just record the events on QTP then have at look at what objects it's created and how it has done it?

  7. #7

    Re: retrieving emails

    i don't think, this will work; i tried it now, but i wasn't able to open an specific email, just always the first one:

    Window("Microsoft Outlook").WinObject("Tabellenansicht").DblClick 158,77

    ok, this was my first try, maybe i can get it to work, but are there no other possiblities (without outlook), like sending an email with cdo?
    retrieving an email with cdo?

  8. #8

    Re: retrieving emails

    you need to use the COM Interface of OUTLOOK to interact with it.

  9. #9
    Senior Member
    Join Date
    Oct 2005
    London, U.K

    Re: retrieving emails

    How about using RDO instead of CDO.


  10. #10

    Re: retrieving emails

    i think i have solved the problem;

    thx for your tips;


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:26 PM.

Copyright BetaSoft Inc.