Email Validation
In this tutorial, learn all about email validation and how we can access and assert email content from the built-in automation action pack for emails.
To get started with this tutorial, open an existing project using the Quick Start Web Automation framework, or create a new one.
In the Quick Start Web Automation framework, there is now a new Module called EmailActions. To find this Module, navigate to the Actions submenu, by heading to Explorer → Components → Actions.
Once in the Actions submenu, open the EmailActions Module. Once opened, you’ll find a collection of functions, including ones for email validation and retrieval.
You can then use these functions in your model. For example, we’ve built out a model that uses ConnectToMail → GetLatestMail → GetLatestMessageContainingSubject → AssertMailContentContains.
You'll need to configure the mail server to connect to your email server. Below we are connecting over imap to a gmail server.
You can then use this to run automation and get the desired results, such as email subject and content.
Below we'll see the run details for obtaining the latest email in our mailbox.