Documentation
Notifications / Send alerts by email

Send alerts by email

Email the alerts through your own SMTP server or a transactional provider: hostname, port, SMTP security (STARTTLS, SMTPS or no TLS), credentials and recipients.

The Email type sends alerts through an SMTP server you provide: your company mail server, or a transactional email provider.

The Create notification form for EmailThe Create notification form for Email
An email channel with STARTTLS on port 587.

The form is split in three parts: the SMTP server, the authentication, and the sender and recipients.

Field Meaning
Hostname The SMTP server, for example smtp.example.com. An http:// or https:// prefix is removed when connecting.
Port Pre-filled with 587. Use the port that matches the SMTP security below.
SMTP security How the connection is protected: STARTTLS, SMTPS (SSL/TLS) or Ignore TLS. See Choose the SMTP security.
Username The SMTP account, often an email address.
Password The password of the account, or an app password. When editing, leave it empty to keep the current password.
Address From The sender of the alerts. Your provider may require an address of a verified domain.
Address To The recipients of the alerts, separated by commas.

Choose the SMTP security

The link See the documentation, under the field, leads here.

The SMTP security field open on its three optionsThe SMTP security field open on its three options
STARTTLS, SMTPS (SSL/TLS) and Ignore TLS.
Option Usual port When to use it
STARTTLS 587 The common case. The connection opens in plain text, then switches to TLS before the credentials are sent. TLS is required: if the server does not offer it, the email is not sent.
SMTPS (SSL/TLS) 465 The server expects TLS from the first byte (implicit TLS). Pick it when your provider gives port 465.
Ignore TLS 25 Plain text, without encryption. Only for a relay on a trusted network, for example a local Postfix. The password travels unencrypted.

A mismatch between the option and the port is the most common cause of a failed test: STARTTLS on port 465, or SMTPS on port 587, usually ends in a timeout or a handshake error.

Channels created before this option existed keep their behavior: StartTLS turned on becomes STARTTLS, turned off becomes Ignore TLS.

What the email looks like

Alerts are sent as HTML emails, with a plain-text version for mail clients that do not display HTML. The sender shows as Uptime Kotlin, with the address of Address From.

A down alert received by email
A failure alert: badge, monitor, target, status, time and error.
Message Subject Color
Failure 🔴 Shop API is down, or 🟡 Shop API is degraded Red, or amber
Reminder 🟠 Shop API is still down (reminder #2) Orange
Recovery ✅ Shop API is back up (down for 4m 30s) Green
Test Uptime Kotlin · test e-mail Blue

Each email lists the monitor, its target and type, the HTTP status and response time when there is one, and the time of the event. A failure or a reminder ends with the error returned by the check. Times follow NOTIFICATIONS_DISPLAY_TIMEZONE and NOTIFICATIONS_DATE_FORMAT: see Dates in the messages.

The layout uses no images and no web fonts, so it displays the same way in clients that block remote content, and stays readable on a phone.

Tips

  • Send to a shared address, such as a mailing list of the on-call team, rather than a person.
  • With Gmail, use smtp.gmail.com, port 587 with STARTTLS, and an app password: the account password is refused when two-step verification is on.
  • Choose Test notification to check the server, the security option and the credentials before saving. The test email shows the SMTP server and port it went through.
Suggest a change on GitHub