Forum Discussion

leeasdf9's avatar
leeasdf9
Frequent Contributor
10 years ago
Solved

How to verify whether email is received in google mail

Hi, There is a challenge of mail notification issue which concerns me for a while, it' about automated verification of certain email in a google mail. Until now i have mapped google mail obj and ve...
  • HKosova's avatar
    10 years ago

    You can use an email client library, such as .NET MailKit, to read the inbox. You can use this library in TestComplete via CLR Bridge/dotNET. I don't have a ready TestComplete example, but the MailKit project page has C# examples that should give you the idea of how to accomplish your task.


    Note that if you use 2-step verification for your Google account, it does not allow programmatic login with the account password. You need to generate an application-specific password for your test here:
    https://security.google.com/settings/security/apppasswords