# SMTP submission

Many tools can only send mail over SMTP: WordPress with an SMTP plugin, shop systems, monitoring, scanners, older practice software. Werkmail accepts those messages at `smtp.werkmail.eu` and then runs them through the same pipeline as the API. Suppression, safe mode, the content gate, warmup and your sending limits all apply. A message refused by the API is refused here too. For WordPress there is an official plugin, [Werkmail SMTP](https://wordpress.org/plugins/werkmail/), which carries every `wp_mail()` message through this service, see [WordPress plugin](/docs/wordpress-plugin).

## Settings

| Setting | Value |
| --- | --- |
| Host | `smtp.werkmail.eu` |
| Port | `587` with STARTTLS, or `465` with TLS from the first byte |
| Encryption | required on both ports |
| Authentication | yes, the login from your workspace |
| Sender address | a domain verified in this workspace |

Unencrypted submission is not offered. If your software only knows port 465, use that: it is TLS from the first byte and behaves the same afterwards.

## Create a login

1. Open the workspace, then **SMTP logins**.
2. Choose a label you will recognise later, for example "WordPress" or "Praxissoftware".
3. Copy the password immediately. It is shown once, only a hash is stored.
4. Put host, port, user name and password into the application.

Each login belongs to the workspace, not to a person. Give every application its own login, so you can revoke one without touching the others. Revoking takes effect on the next connection.

## Limits

- 50 recipients per message. For more, use a broadcast over the API.
- 25 MB per message, and the attachments together may not exceed 10 MB.
- At most 10 attachments per message.
- No programs or scripts: `.exe`, `.msi`, `.bat`, `.cmd`, `.ps1`, `.vbs`, `.js`, `.scr`, `.jar`, `.lnk` and similar are refused. Send documents as PDF, or put a file in a zip archive and mention it in the message.
- 500 messages per hour per login. A second login is the answer for legitimate higher volume, not a way around the limit.
- A retry with the same `Message-ID` is not sent twice; the first answer is repeated.

## Bounces

A bounce goes to the sender address, exactly as SMTP prescribes. Use a From address that exists and is read, not a black hole. If your software insists on `noreply@`, point that mailbox at a person at least once a week: otherwise you never learn that a patient address is dead.

## What the reply means

| Reply | Meaning |
| --- | --- |
| `535` | Wrong user name or password |
| `550 Sender domain not verified` | The From domain is not verified in this workspace |
| `452` | Too many recipients in one message |
| `451` | We could not decide, try again later |

Every accepted message appears in the workspace's message list with its own status, so you can see whether it was delivered even when the sending application only reports "sent".

## When not to use SMTP

For scheduled campaigns, templates and per-recipient statistics, use the API. SMTP is the bridge for software that cannot call an API, not the recommended path for newsletters.
