---
title: OTP Email Sender node
description: Sends an email containing a generated one-time password to the user.
component: auth-node-ref
version: 7.4
page_id: auth-node-ref::otp-email-sender
canonical_url: https://docs.pingidentity.com/auth-node-ref/latest/otp-email-sender.html
llms_txt: https://docs.pingidentity.com/auth-node-ref/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
keywords: ["Nodes &amp; Trees", "Journeys", "Authentication", "Email"]
page_aliases: ["auth-node-otp-email-sender.adoc"]
superseded_by: https://docs.pingidentity.com/auth-node-ref/latest/otp-email-sender.html
section_ids:
  compatibility: Compatibility
  outcomes: Outcomes
  properties: Properties
---

# OTP Email Sender node

Sends an email containing a generated one-time password to the user.

Send mail requests time out after 10 seconds.

|   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | You can change the timeout in the following advanced AM server properties:* `org.forgerock.openam.smtp.system.connect.timeout`

* `org.forgerock.openam.smtp.system.socket.read.timeout`

* `org.forgerock.openam.smtp.system.socket.write.timeout`> **Collapse: How Do I Configure Advanced Server Properties?**
>
> * To configure advanced server properties for all the instances of the AM environment, go to Configure > Server Defaults > Advanced in the AM admin UI.
>
> * To configure advanced server properties for a particular instance, go to Deployment > Servers > *Server Name* > Advanced.
>
> * To configure advanced server properties for a particular instance, go to Deployment > Servers > *Server Name* > Advanced.
>
> If the property you want to add or edit is already configured, click on the pencil ([icon: pencil-alt, set=fa]) button to edit it. When you are finished, click on the tick ([icon: check, set=fa]) button.
>
> Save your changes.For more information, refer to [Advanced Properties](https://docs.pingidentity.com/pingam/7.4/reference/deployment-configuration-reference.html#smtp-connect-timeout). |

## Compatibility

| Product                                    | Compatible?           |
| ------------------------------------------ | --------------------- |
| PingOne Advanced Identity Cloud            | [icon: check, set=fa] |
| ForgeRock Access Management (self-managed) | [icon: check, set=fa] |
| Ping Identity Platform (self-managed)      | [icon: check, set=fa] |

## Outcomes

Single outcome path.

## Properties

| Property                            | Usage                                                                                                                                                                                                                                                 |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Mail Server Host Name *(required)*  | Specifies the hostname of the SMTP email server.                                                                                                                                                                                                      |
| Mail Server Host Port               | Specifies the outgoing mail server port.Common ports are 25, 465 for SSL/TLS, or 587 for StartTLS.                                                                                                                                                    |
| Mail Server Authentication Username | Specifies the username AM uses to connect to the mail server.                                                                                                                                                                                         |
| Mail Server Authentication Password | Specifies the password AM uses to connect to the mail server.                                                                                                                                                                                         |
| Email From Address *(required)*     | Specifies the email address from which the one-time password will appear to have been sent.                                                                                                                                                           |
| Email Attribute Name                | Specifies the user's profile attribute containing the email address to which to email the OTP.Default: `mail`                                                                                                                                         |
| The subject of the email            | Click Add to add a new email subject. Enter the locale, such as `en-uk`, in the KEY field and the subject in the VALUE field. Repeat these steps for each locale that you support.                                                                    |
| The content of the email            | Click Add to add the content of the email. Enter the locale, such as `en-uk`, in the KEY field and the email content in the VALUE field. Repeat these steps for each locale that you support.                                                         |
| Mail Server Secure Connection       | Specifies how to connect to the mail server.If a secure method is specified, AM must trust the server certificate of the mail server.The possible values for this property are:- `NON SSL/TLS`

- `SSL/TLS`

- `Start TLS`Default: `SSL/TLS`          |
| Gateway Implementation Class        | Specifies the class the node uses to send SMS and email messages. A custom class must implement the `com.sun.identity.authentication.modules.hotp.SMSGateway` interface.Default: `com.sun.identity.authentication.modules.hotp.DefaultSMSGatewayImpl` |
