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

# Configure Email Notifications for MFA

> Describes how to configure email as an MFA factor for users who don't have their primary factor available.

Use email as a multi-factor authentication (Multi-factor authentication (MFA): User authentication process that uses a factor in addition to username and password such as a code via SMS.) (MFA) factor to provide users a way to perform MFA when they don't have their primary factor available (e.g. they don't have their device to receive an SMS or push notification).

> [card] Availability varies by login implementation
>
> The login implementation you use affects whether this feature is available. To learn more, read [Universal Login vs. Classic Login](/docs/docs/authenticate/login/auth0-universal-login/universal-login-vs-classic-login).

Email is not true MFA because it does not represent a different factor than the password. It does not represent **something I have** or **something I am**, but rather just **something I know** (the email password). It is also weaker than other factors in that it's only as secure as the email itself (for example, encrypted end-to-end).

Users do not need to explicitly enroll with email MFA. They can use it when they have a verified email. This happens when they:

* Complete the email verification flow which updates the `email_verified` field using the Management API (Management API: A product to allow customers to perform administrative tasks.).
* Log in with a connection that provides verified emails (such as Google).

You can only enable email as an MFA factor if there is already another factor enabled.

Once Email MFA is enabled, users will be prompted to complete MFA with another enabled factor. If they select **Try another method**, and then pick **Email**, they will be sent an email with a one-time code that they will need to enter to complete the authentication flow.

## Configure email notifications

You can explicitly enroll email for MFA using the [MFA API](/docs/docs/secure/multi-factor-authentication/authenticate-using-ropg-flow-with-mfa/enroll-and-challenge-email-authenticators). If users have a verified email and one or more explicitly enrolled emails, they can choose to select which email they want to use to complete MFA when logging-in using Universal Login (Universal Login: Your application redirects to Universal Login, hosted on Auth0's Authorization Server, to verify a user's identity.).

1. Go to [Dashboard > Security > Multi-factor Auth](https://manage.auth0.com/#/security/mfa) and enable the **Email** toggle.
   You will only be able to enable it if there is another factor enabled.
2. Auth0 provides a test email provider but it only allows a limited amount of emails, so you should configure your own email provider. To learn more, read [Configure External SMTP Email Providers](/docs/docs/customize/email/smtp-email-providers).

## Configure OTP settings

> [!WARNING]
>
> Customers are responsible for any diminishment in security posture resulting from a change to: (i) the Code Expiration Time or "Remember Me" Session Behavior lifespan to a time period longer than Okta's standard recommended setup; or (ii) the OTP Length to a shorter character length than Okta's standard recommended setup.

You can configure OTP code length and expiration time for the email factor. Settings apply to all users on your tenant.

| **Setting** | **Default** | **Range** |
| - | - | - |
| **OTP Length** | 6 digits | 4–10 digits |
| **OTP Expiration Time** | 5 minutes | 5–60 minutes (30–3600 seconds) |

> [tab] Auth0 Dashboard
>
> 1. Navigate to [**Auth0 Dashboard > Security > Multi-Factor Auth**](https://manage.auth0.com/#/multifactor-auth) and select **Email**.
> 2. Configure the following:
>    * **Verification Code Length**: Enter a value between 4 and 10 digits.
>    * **Verification Code Lifetime**: Enter a value between 5 and 60 minutes.
> 3. Select **Save**.

> [tab] Management API
>
> **Required scopes:** `read:guardian_factors` (GET), `update:guardian_factors` (PUT)
>
> The Dashboard displays expiration time in minutes. The Management API uses seconds. When calling the API directly, use seconds (30–3600).
>
> To retrieve current email factor OTP settings, send a `GET` request to `/api/v2/guardian/factors/email/settings`:
>
> ```json theme={null}
> {
>   "otp_length": 6,
>   "otp_expiration_time": 300
> }
> ```
>
> To update email factor OTP settings, send a `PUT` request to `/api/v2/guardian/factors/email/settings`:
>
> ```json theme={null}
> {
>   "otp_length": 8,
>   "otp_expiration_time": 600
> }
> ```

## Learn more

* [Enroll and Challenge Email Authenticators](/docs/docs/secure/multi-factor-authentication/authenticate-using-ropg-flow-with-mfa/enroll-and-challenge-email-authenticators)
* [Customize Emails](/docs/docs/customize/email)
* [Customize Email Templates](/docs/docs/customize/email/email-templates)
* [Customize Email Handling](/docs/docs/customize/email/manage-email-flow)
* [Configure External SMTP Email Providers](/docs/docs/customize/email/smtp-email-providers)
* [Configure Custom External SMTP Email Provider](/docs/docs/customize/email/smtp-email-providers/custom)
