> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-platform/3.0/harness-platform-resources/notifications-and-banners/add-smtp-configuration.md).

# Add SMTP configuration

You can send email notifications to Harness User Groups using your SMTP accounts.

Emails can be sent automatically in response to Pipeline and stage events like Pipeline Failed and Stage Succeeded.

Your Harness SaaS account includes an SMTP server, so you don't need to add one of your own.

If you are using the Harness On-Prem offering, then you will need to add an SMTP server to your Harness account. This topic explains how to configure an SMTP server with your Harness account and send email notifications according to different Pipeline events.

#### Before you begin <a href="#before-you-begin" id="before-you-begin"></a>

* [User Group Notification Preferences](/harness-platform/3.0/harness-platform-resources/platform-access-control/add-user-groups.md#edit-notification-preferences)

#### Limitations <a href="#limitations" id="limitations"></a>

Configuring your SMTP server is required only if you are using [Harness Self-Managed Enterprise Edition](/self-managed-enterprise-edition/new-to-self-managed-enterprise-edition/smp-overview.md), or if you wish to use your own SMTP server instead of the Harness SaaS default SMTP option.

#### Step 1: Add SMTP Configuration <a href="#step-1-add-smtp-configuration" id="step-1-add-smtp-configuration"></a>

In your Harness account, go to **Account Settings**.

Click **Account Resources.**

![](/files/E72gCkDgzATTekypQdp8)

Click **SMTP Configuration** and then click **Setup**.

The SMTP Configuration settings appear.

![](/files/QOJsm1HC5T6CiRslJptF)

#### Step 2: Details <a href="#step-2-details" id="step-2-details"></a>

Enter **Name** for your SMTP Configuration.

In **Host,** enter your SMTP server's URL.

Enter the port number on which the SMTP server is listening (typically, `25`).

Select **Enable SSL** for secure connections (SSL/TLS).

Select **Start TSL** to enable SMTP over TLS, or when the connection is upgraded to SSL/TLS using `STARTTLS`.

In **From Address**, enter the email address from which Harness will send notification emails.

Click **Continue**.

#### Step 3: Credentials <a href="#step-3-credentials" id="step-3-credentials"></a>

Enter the username and password for the email account.

![](/files/lTcTXJl5nU0OYMcUX8bO)

Click **Continue**.

#### Step 4: Delegate Setup <a href="#step-4-delegate-setup" id="step-4-delegate-setup"></a>

In **Delegates Setup**, use [**Selectors**](/harness-ai/use-harness-platform/delegates/delegate/manage-delegates/select-delegates-with-selectors.md#selecting-a-delegate-for-a-connector-using-tags) to select any specific **Delegates** you want to use.

![](/files/BMrMewtCFAWyL5MC6I3Y)

Click **Save and Continue**.

#### Step 5: Test Connection <a href="#step-5-test-connection" id="step-5-test-connection"></a>

In **To,** enter the email address to which you want to send notifications.

Enter **Subject** and **Body** for the email.

Click **Test**.

![](/files/kYkkaOfQbKnjfeSipIYX) Click **Continue** after the test is successful.

SMTP is configured for your account.

![](/files/IqENtqaxqAIuDfLatjQS)

#### Option: Send Notifications for a User Group using Email <a href="#option-send-notifications-for-a-user-group-using-email" id="option-send-notifications-for-a-user-group-using-email"></a>

In your **Account**/**Organization**/**Project** click Access Control.

Click **User Groups**.

Select the User Group to which you want to add notification preferences.

In **Notification Preferences**, select **Email/Alias**.

Enter the email address from which you want to send email notifications.

You can also send email notifications to all the members of this user group by selecting **Send email to all users part of this group**.

![](/files/Bvdn1ySBFnFWVDwAODeh)

Click **Save**.

![](/files/nRWlwWCtAtX2Dg0TIpNq)

#### Option: Send Notification for a Pipeline <a href="#option-send-notification-for-a-pipeline" id="option-send-notification-for-a-pipeline"></a>

You can send Pipeline event notifications using email. Event notifications are set up using **Notify** option in your Pipeline.

In Harness, go to your Pipeline and click **Notify**.

Click **Notifications**. The **New Notification** settings appear.

![](/files/FOdMOvLtljsSwjRAU0nu) Enter a name for your notification rule and click **Continue**.

Select the Pipeline Events for which you want to send notifications. Click **Continue**.

![](/files/HyiBGDwPmpOMJVKcc1QA) In **Notification Method**, select **Email**.

Enter comma-separated user email addresses to which you want to send the notifications.

Select the User groups which you want to notify.

Click **Test**.

Once the test is successful, click **Finish**.

![](/files/8vyhYzqFM1BhCba2CvUP) Your Notification Rule is now listed in Notifications. Post this users will get email notifications when the events listed in the Notification Rule occur.

#### See also <a href="#see-also" id="see-also"></a>

* [Send Notifications using Slack](/harness-ai/use-harness-platform/notifications-alerts-and-banners/notifications/send-notifications-using-slack.md)
* [Send Notifications to Microsoft Teams](/harness-ai/use-harness-platform/notifications-alerts-and-banners/notifications/send-notifications-to-microsoft-teams.md)
