# Setting up outgoing mail via SMTP Relay
In this article, we will explain how to set up SMTP relay in Swarmica for sending outgoing mail from all email channels.

## SMTP relay settings

To make SMTP relay settings in the system, go to the **Settings** section and then to the **SMTP relay** block.

A page with settings will open. Below, we show an example of filled settings.

![](https://support.swarmica.com/attachments/S/z/Sz_0lKfWBuukEBAD_a/image.png)

Enter the following data from top to bottom:

1. Your server address.
2. The port for your server's outgoing mail.
3. The username through which outgoing mail will pass.
4. User password.
5. Encryption: none, SSL, or TLS.
6. Activate the **Enabled** switch if all settings have been entered and the server is ready for operation.
7. Activate the **Use system SMTP server** setting in your email channels (Settings - Channels - Email).

## Checking SMTP relay

After completing all the steps, click on the check button to verify the correctness of the settings.

If the settings are correct, a green notification will appear below the check button.

![](https://support.swarmica.com/attachments/_/T/_TNjMulo8yV9dRDa_a/image.png)

If the settings are incorrect, the notification will be red.

![](https://support.swarmica.com/attachments/G/f/Gfc80UOlyP9Ru91F_a/image.png)

Additionally, you can use the extra check option to the right of the settings fields—sending a test email.

![](https://support.swarmica.com/attachments/V/P/VP739I8B0VJ7MHVf_a/image.png)

After filling in the data and clicking the send button, a notification about successful or unsuccessful sending will also appear in this block.

![](https://support.swarmica.com/attachments/C/T/CTz7WilKlai2r1tv_a/image.png)

![](https://support.swarmica.com/attachments/t/S/tStJ0cNsuMzrSFbU_a/image.png)