The Email Helper package enables you to retrieve an email via the API. This helps with automating various testing scenarios, which require you to obtain information that is located within an email. For example, when testing a password reset journey you may need the link that is sent out in the password reset email. Usually, this journey wouldn’t be covered by an automated test, or someone might automate the logging in of the email provider – neither scenario is ideal. The Email Helper package will enable you to use a method to retrieve the latest email in the inbox and not have to worry about writing any code to interact with the API.
The package is simple in operation and provides the ability to retrieve the latest email in the inbox as well as to delete all emails in the inbox. To use the package, you will need to create an email account and obtain some information on the account. There are step-by-step instructions on how to configure the package over on the project wiki.
Currently, there is only one email provider available, which is Gmail. There are future plans to extend this and add different email providers.
You can download the package via the NuGet package manager or install it via the command line:
PM> Install-Package EmailHelper -Version 1.0.0
Head over to NuGet to download the package directly.
For more information head over to the project at GitHub:
Email Helper