---
title: Sending emails
project: OpenMail
version: 1.0
section: faq
language: en
license: MIT
url: https://totaljs.es/docs/openmail/1-0/faq/sending/
updated: 2026-11-19T07:58:00.462Z
---

# Sending emails

> Questions about emails that do not arrive or do not look as expected.

## The API says success, but no email arrives. What should I check?

- Look in [Logs](../../guides/logs/). If the **Error** column has a message, the SMTP server refused the email.
- Click **Test** in the profile to check the SMTP server. See [Test emails](../../guides/test-emails/).
- Check the spam folder. Many providers accept mail only from senders their SMTP server is allowed to use, so the **From** address of the profile must belong to your SMTP account or domain.
- With several recipients in `to`, OpenMail answers before it sends. See [Send an email](../../reference/send-email/).

## A value in my email is empty. Why?

The template prints only the data your app sends in `data`. The sample data in the `<script type="text/json">` block is used only for the preview and for **Bulk send**. Check that the names match, for example `value.name` in the template and `"name"` in `data`.

## HTML in my data shows as text. Why?

Values are HTML-encoded so your data cannot break the email. To insert HTML from your data on purpose, use `raw`, for example `{{ value.text | raw }}`, and only with data you trust.

## Special characters in the subject look wrong. Why?

Values in the subject are HTML-encoded too, so `&` or `<` from your data show as `&amp;` or `&lt;`. Avoid these characters in values used in the subject, or send a ready `subject` with the request.

## The request hangs. Why?

With one recipient, OpenMail answers only after the SMTP server has answered. If the SMTP server is unreachable, the request can wait a long time. Set a timeout in your app and use **Test** in the profile.
