---
title: "Rest PKI Core command: **test-email**"
description: "Reference for the Rest PKI Core test-email command, which tests the email configuration by sending a test message to a given address."
canonical: "https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/tool/test-email"
locale: "en"
product: "Rest PKI Core"
last_updated: "2026-09-15"
---

# Rest PKI Core command: **test-email**

## Name

`test-email` - Tests the email sending

## Syntax

```sh
dotnet Lacuna.RestPki.Site.dll [settings] -- test-email <to-address>
```

Or, on Docker:

```sh
docker run -i lacunasoftware/restpkicore:5.0 [settings] -- test-email <to-address>
```

The `settings` arguments are additional settings to overwrite settings from configuration files and environment variables,
for instance `--Section1:Name1=value1 --Section2:Name2=value2`.

## Description

The `test-email` command tests the email configuration by attempting to send a test message to the given address.

## See also

* [Rest PKI Core command-line tool](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/tool)
