---
title: SMTP options
project: OpenMail
version: 1.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/openmail/1-0/reference/smtp-options/
updated: 2026-11-19T07:58:08.081Z
---

# SMTP options

> The JSON options of the SMTP configuration field of a profile.

**SMTP configuration** in a [profile](../../guides/smtp-profiles/) holds the connection options of the SMTP server as JSON. **Hostname** holds the server name.

## Common options

| Option | Meaning | Default |
|---|---|---|
| `port` | The port of the SMTP server. | `25` |
| `user` | The user name to sign in to the SMTP server. | none |
| `password` | The password for `user`. | none |

## Example

A server on port 587 with a user name and password:

```json
{
	"port": 587,
	"user": "noreply@example.com",
	"password": "your-smtp-password"
}
```

An empty object `{}` connects to port 25 without signing in.

## Check the options

Click **Test** in the profile form after every change. See [Test emails](../../guides/test-emails/).

## More options

The SMTP sender of OpenMail is the one of the Total.js framework. The **Documentation** link under the field opens the list of all its options, for example for encrypted connections.

## Good to know

- The field must contain valid JSON: keys and text in double quotes, no comma after the last option.
- The password is stored in plain text in `databases/memorize_data.json` and in exported profiles. Use an SMTP account that only sends email.
