---
title: "Email Validation"
slug: "email-validation"
updated: 2023-07-31T16:00:30Z
published: 2023-07-31T16:00:30Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.curiositysoftware.ie/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

[Embedded content](https://www.youtube.com/embed/IMwk6KfFT-o?&amp;wmode=opaque&amp;rel=0)

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.**

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680701876784.png)

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.**

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680701873617.png)

You can then use these functions in your model. For example, we’ve built out a model that uses **ConnectToMail → GetLatestMail → GetLatestMessageContainingSubject → AssertMailContentContains.**

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680701869725.png)

You'll need to configure the mail server to connect to your email server. Below we are connecting over imap to a gmail server.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680701859659.png)

You can then use this to run automation and get the desired results, such as email subject and content.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680701853135.png)

Below we'll see the run details for obtaining the latest email in our mailbox.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680701849636.png)
