# Email Confirmation

In version 2.6 of the script, a module for confirming the client's email before registration on the site and before creating a request has been introduced.

## Email Confirmation Before Registration

To use this option, activate the new module in the "**Modules**" section.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-f562d33b2c05fc490c5f555a5aea771f7b5a37d3%2Fimage%20(1865)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
To ensure the module works, you also need to activate the template "**Email Confirmation Before Registration**" in the "**Messages**" -> "**Email Templates**" section (this is a mandatory requirement).

<img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-2d95be0e4c5c5b76dc75f6952be592ce3d0585e6%2Fimage%20(1877)_eng.png?alt=media" alt="" data-size="original">
{% endhint %}

General settings for the module can be found in the "**Modules**" -> "**Email Confirmation Before Registration**" section.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-ec5195203a975c03efa9e81e07e1683743472d9f%2Fimage%20(1867)_eng.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

**Code Type** — the format of the code that will be sent to the client after clicking the "**Register**" button:

* **Letters** — the code will consist only of Latin letters
* **Numbers** — the code will consist only of digits

**Timeout (sec.)** — the waiting time

Once the module is activated and the template "**Email Confirmation Before Registration**" is enabled in the "**Messages**" -> "**Email Templates**" section (this is a mandatory requirement), after clicking the "**Register**" button, a new user will receive an email with a confirmation code sent to the email address they provided. This code must be entered in the corresponding field to complete the registration.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-3e45030c871168a773f4c3abad0e597e5e64d247%2Fimage%20(1864)_eng.png?alt=media" alt="" width="354"><figcaption></figcaption></figure>

After entering the correct code and clicking the "**Register**" button again, the user will receive a notification of successful registration and will be immediately logged into their personal account.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-de44cf7f50e4fa20637f27088520b41fded3e5c1%2Fimage%20(1868)_eng.png?alt=media" alt="" width="283"><figcaption></figcaption></figure>

## Email Confirmation Before Creating a Request

To use this option, activate the new module in the "**Modules**" section.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-a9967172e390b5a6cb14a7dc65018e108d35c197%2Fimage%20(1870)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
To ensure the module works, you also need to enable the "**Email Verification**" option in the settings of the selected exchange directions under the "**Verification**" tab.

<img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-8f24a68164d2183eb305abd4a220d663b12a43fa%2Fimage%20(1873)_eng.png?alt=media" alt="" data-size="original">

Additionally, activate the template "**Email Confirmation Before Creating a Request**" in the "**Messages**" -> "**Email Templates**" section (these are mandatory requirements).

<img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-7bd43d8638610c593a42e60e86e37bbbbbaebefe%2Fimage%20(1875)_eng.png?alt=media" alt="" data-size="original">
{% endhint %}

General settings for the module can be found in the "**Modules**" -> "**Email Confirmation Before Creating a Request**" section.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-a69efd14081f161403c4287049d1dfc35c3496c8%2Fimage%20(1872)_eng.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

**Code Type** — the format of the code that will be sent to the client after clicking the "**Register**" button:

* **Letters** — the code will consist only of Latin letters
* **Numbers** — the code will consist only of digits

Send email for:

* **All Users** — email confirmation will be requested from both registered users and guests
* **Guests** — email confirmation will only be requested from guests (if a request is created by a user with an unverified parameter for verification, confirmation will not be required for them)

**Timeout (sec.)** — the waiting time

**Verification Parameter** — the parameter that the user will need to confirm:

* **Account Sending**
* **Account Receiving**
* **Email**

Once the module is activated, the "**Email Verification**" option is enabled, and the template "**Email Confirmation Before Creating a Request**" is activated, after clicking the "**Continue**" button, the user will receive an email with a confirmation code sent to the email address they provided. This code must be entered in the corresponding field in the form on the site to create a request.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-cd62bb4ca49bbd5ab84285c9ddeacb12da31e3b7%2Fimage%20(1874)_eng.png?alt=media" alt="" width="358"><figcaption></figcaption></figure>

After entering the correct code and clicking the "**Continue**" button again, the user will receive a notification of successful request creation.
