# Email Server Configuration

The Hexnode UEM console comes pre-configured with a default mail server to send users email notifications and alerts. Still, if desired, administrators can associate their organizational email server as the outgoing mail server on Hexnode. Once successfully configured, Hexnode will send all the mails like enrollment requests, usage reports etc., to the administrators and users via this email.

Configure Hexnode Email server
------------------------------

1. On your Hexnode portal, go to **Admin** > **Email**.
2. Enter the following fields and security authentication as per requirement.
FieldDescriptionServer NameEnter the hostname of the outgoing mail server, such as smtp.example.com.PortEnter the port number used by the outgoing mail server.Sender EmailEnter the email address from which mails are to be sent.Enable TLSTransport Layer Security (TLS) is a handshake protocol which authenticates both the client and the server before any information is passed. Enable TLS if the outgoing mail server supports TLS.Enable SSLSecure Socket Layer (SSL) is a security protocol that protects all communication between the server and the end device. Enable SSL if the outgoing mail server supports SSL.Enable AuthenticationCheck this field if the email server requires authentication.If Authentication is enabled,

User Name – Provide the full email address as the user name for the email account being configured.

Password – Enter the password of the email account being configured.

7. After providing the necessary details, click **Save** to remember the settings.

### Test mail

To verify whether the entered configurations are successful, you can send a sample test mail from the configured server to a specific account.

Click on **Test mail** and fill in the following details-

 To EmailEnter the email address to which the test mail is to be sent.SubjectA subject is already provided by default. You can define a new subject for the test mail.MessageA message is already provided by default. You can insert a custom message for the test mail.Click on **Send** to send the test email.

[![Test email from configured server](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/03/Test-email.png)](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/03/Test-email.png)### Reset Email Configurations

The Reset option can be used to reset all email server settings configured by the admin.

Send Enrollment Mails
---------------------

Once all the configurations are complete, the enrollment request mails can be sent using the configured email server.

[![Email server configuration](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2018/08/Enrollment_request.png)](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2018/08/Enrollment_request.png) Notes:- For Gmail accounts, you might encounter the error “Mail sending failed. Please check your port number, authentication”, despite entering the correct credentials. Try [signing with an app password](https://support.google.com/accounts/answer/185833?hl=en), if you use two-step verification on your account. If you don’t use two-step verification, then head down to [enable access through less secure apps](https://myaccount.google.com/lesssecureapps?pli=1). You need to enable **Less secure app access** to establish a connection with the POP/IMAP protocol. You might also need to clear the CAPTCHA validation and allow access to your Google account from [here](//accounts.google.com/DisplayUnlockCaptcha%E2%80%9D).
[![Test email settings](https://www.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/03/Test-Email-Settings.png)](https://www.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/03/Test-Email-Settings.png)

- If you have not previously configured Email settings from the Admin tab, you can also configure them while sending an enrollment request from **Enroll** > **All Enrollments** > **Email**. Complete the on-screen procedure same as that of configuring Email settings from the Admin tab.
[![Server Configuration from Enrollment Page](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/03/Server-Configuration-from-Enrollment-Page.png)](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/03/Server-Configuration-from-Enrollment-Page.png)