---
title: Test emails
project: OpenMail
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openmail/1-0/guides/test-emails/
updated: 2026-11-19T07:58:08.081Z
---

# Test emails

> Check the SMTP connection of a profile and send a test of a template to yourself.

OpenMail has two tests: one for the SMTP server of a profile and one for a template.

## Test the SMTP server

**1.** Open **Profiles**, click the cog on the profile card and choose **Edit**.

**2.** Click **Test** next to **SMTP server configuration**.

If the server answers, you see "SMTP server is working correctly":

![The message SMTP server is working correctly over the profile form](/files/JapWK029s60f.webp)

If it does not, an error message tells you why, for example `Error: connect ECONNREFUSED 127.0.0.1:1126` when nothing listens on that port. The test uses the values in the form, so you can test before you click **SUBMIT**.

## Send a test of a template

**1.** Open the template in the editor.

**2.** Click **Send test** at the top right.

**3.** The field starts with `@`. Replace it with your email address and press Enter.

OpenMail sends the preview, with the sample data, to that address with the subject `OpenMail: Test`. The message "Test email has been sent successfully." confirms it.

The test email uses the **From** and **Reply to** addresses and the SMTP server of the profile, so it also checks that the server accepts your sender address.
