---
version: "2026.1.0"
language: "en"
---
# E-mail Settings

Leapwork can send e-mails in several ways. For example, when configuring a schedule, you can add an e-mail action to forward the schedule results to recipients. Another method is using the [Send e-mail building block](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/data-driven/send-e-mail.md) as part of a flow.

Leapwork supports two ways to connect to an email server:

* Simple Mail Transfer Protocol (SMTP) Server

* Open Authentication (OAuth)

**Notes:**

* SMTP is default approach for sending an e-mail.

* E-mail settings would be available if you are logged in as an administrator.

## SMTP Server

SMTP is a basic authentication protocol for sending emails through servers from one machine to another. To send emails, Leapwork requires access to an SMTP server configured in the Email settings. Make sure to coordinate with your mail and network administrators to ensure the SMTP server is accessible and that you have the required credentials to send emails.  
![image-20260610-134943.png](https://docs.leapwork.com/__attachments/a_6e74e0ef5ea21adc435d12f0dbb2e8d1acb50fbe3eadf58291beb68ec9543d82/image-20260610-134943.png?cb=af2522a7cd944f1cb6e11f8be65fd2ac)  
**Note** : The screenshots on this page use the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

On the **Mail Settings** window:

1. Select the **Protocol** from the drop down:

![image-20260610-135019.png](https://docs.leapwork.com/__attachments/a_948cf9419cd94db1071325592a81c8c3d2bdaf8efd818a8966839a54afc16d6a/image-20260610-135019.png?cb=0f657cf93319293af1376f2bdcb8bdbf)

2. Select the SMTP.

3. Enter **SMTP Server** details in the given field. (Hostname or IP address of the SMTP server)

4. Enter **SMTP Port** details in the given field.

5. Enter **From Mailbox** details in the given field.

6. Enter **SMTP Username** details in the given field. (The username for logging into the SMTP server)

7. Enter **SMTP Password** details in the given field. (The password for the SMTP Username account)

8. Check the **Accept any certificate**checkbox.This configuration instructs Leapwork to ignore any invalid SSL certificates in the communication with the SMTP server.

9. Click **Test connection** button to test that the configuration is working correctly. This will do a login to the SMTP server to verify the SMTP Server, SMTP Username, and SMTP Password.

**SMTP Server** and **SMTP Port** are the default fields. The values of these are auto filled and you can change these values based on your requirement.  
![image-png-Dec-19-2022-08-51-31-7678-AM-20260615-114158.png](https://docs.leapwork.com/__attachments/a_855a0cf24d9f66a480e54c9df095549adbfe4b4d2746bd9df2cf75d11fb0770d/image-png-Dec-19-2022-08-51-31-7678-AM-20260615-114158.png?cb=5d34b274802b35f075cc02a15db5eef0)  
![image-png-Dec-19-2022-08-52-13-1136-AM-20260615-114417.png](https://docs.leapwork.com/__attachments/a_2dc37d37647887549602bdd7e926931b5bcef9992daa6361eac07549360a13ca/image-png-Dec-19-2022-08-52-13-1136-AM-20260615-114417.png?cb=b3e6643a150df2acd3d6511436ca84b9)  
The success message appears to let you know that the **SMTP server** is connected successfully.

10. Click **Send test email** button to use the configuration to send a test e-mail to the e-mail address specified in the **From Mailbox** field.

![image-png-Dec-19-2022-08-52-44-2730-AM-20260615-114443.png](https://docs.leapwork.com/__attachments/a_b156b3b8bfd1c849c73bf756d8c7885f5c817f32baf17c71e355c3e8c34cae20/image-png-Dec-19-2022-08-52-44-2730-AM-20260615-114443.png?cb=a7bea83af1ac8c64f633321548bfbbe2)  
The success message appears to let you know that the emailis sent successfully.

11. Click**Save button to save the details.**

12. Click**Cancel button to cancel the details.**

## OAuth:

OAuth is an open-standard authorization protocol or framework that provides applications the ability for secure designated access.

To send an e-mail, Leapwork requires access to an OAuth 2.0 configuration, a secure open-standard authorization protocol that protects your data by granting access without revealing identity or credentials.

This configuration is set in the E-mail settings section of Leapwork's settings.  
**Note:**Contact your mail and network administrators to ensure Leapwork can access the OAuth configuration and that you have permission to send e-mails.

To register the daemon application:

1. Go to<https://learn.microsoft.com/en-us/azure/healthcare-apis/register-application>

2. Then, go to <https://portal.azure.com/> to register your daemon application. If registered, find the Client ID, Tenant ID, and Object ID under Overview.

![image-png-Dec-19-2022-08-53-11-6157-AM-20260615-114607.png](https://docs.leapwork.com/__attachments/a_3701c50e9f9439c279f971d4df177b315aec0ce571b4853ce8ff2ffd54d89b53/image-png-Dec-19-2022-08-53-11-6157-AM-20260615-114607.png?cb=134c2e9183efc0750f0c838254c816a4)

* You can find **client secret** under **Certificates \& secrets**:

![image-png-Dec-19-2022-08-53-25-3568-AM.png-20260615-114705.jpeg](https://docs.leapwork.com/__attachments/a_16048b1385bba17808c820b4a9794741d166d52dbe887fc94491307c0628f701/image-png-Dec-19-2022-08-53-25-3568-AM.png-20260615-114705.jpeg?cb=8e6f335e2d792a930e5e0b680c79fd49)

* Applications can call APIs once Admin grants permission during consent:

![image-png-Dec-19-2022-08-53-38-3515-AM-20260615-114730.png](https://docs.leapwork.com/__attachments/a_758f6539c6c7b92ab4f0c057ffa76e9d9ea278a04d90fe5a42fde19df4b0ca10/image-png-Dec-19-2022-08-53-38-3515-AM-20260615-114730.png?cb=d71148eae465753048d2380becc66f26)

3. Go to Leapwork Flow and select **Settings**:

![image-20260615-114830.png](https://docs.leapwork.com/__attachments/a_4da5015bba954aac278315c850482f5268ff40d1b7784e39c4d9bb4b61f577d9/image-20260615-114830.png?cb=458517a03ab35cf620d02749c7b8fe82)

On the**Mail Settings** window:  
![image-png-Dec-19-2022-08-54-00-0093-AM-20260615-114912.png](https://docs.leapwork.com/__attachments/a_fda7da7bcebdd40fe43160a254ba8953c8ce064f521d4e782d504d9833ae2f41/image-png-Dec-19-2022-08-54-00-0093-AM-20260615-114912.png?cb=cd0da989740d1354bee10b064903c453)

4. Select the **Protocol** from the drop-down:

![image-png-Dec-19-2022-08-54-14-8160-AM-20260615-114939.png](https://docs.leapwork.com/__attachments/a_aa35fdefc4e889252449ea0b1f5d562cd4ad04f67fd91fe627c4c37f3f73cfcd/image-png-Dec-19-2022-08-54-14-8160-AM-20260615-114939.png?cb=4eedb14d30bd52b735b3125105290077)

5. Select the OAuth.

* Enter **From Mailbox** details in the given field.

* Enter **Instance** details in the given field.

* Enter **API URL**details in the given field.

* Enter **Tenant** details in the given field.

* Enter **Client ID** details in the given field.

* Enter **Client Secret** details in the given field.

**Notes:**

* **Instance** and **API URL** are the default fields. The values of these are auto filled and you can change these values based on your requirement.

* The **Test connection** button is disabled in OAuth.

6. Click **Send test email** to send a test email using the configuration to the address in the **From Mailbox** field.

![image-png-Dec-19-2022-08-54-33-3748-AM-20260615-115003.png](https://docs.leapwork.com/__attachments/a_5bac53532ef281d6e70dada0fee4e2f253056789a613cf42537f593f6ba86d34/image-png-Dec-19-2022-08-54-33-3748-AM-20260615-115003.png?cb=9e7817c33ae65b301b33f64f4d991b3a)  
The success message appears to let you know that the emailis sent successfully.

7. Click**Save button to save the details.**

8. Click**Cancel button to cancel the details.**