Skip to main content
The SMTP server sends through the same account, domains, limits and balance as POST /v1/email/messages. Use it when a system can only send e-mail over SMTP; anything you build yourself is simpler on the API.

Settings

The console shows the same settings on the application’s Email page, and the key is made under Application settings → API keys. The key decides the application: its verified domains, its log and its webhooks. A tk_test_ key is refused, as on the API. TLS is required. On port 587 the server refuses to log in before STARTTLS; port 465 is encrypted from the start. Plain port 25 is not offered.

What is sent

  • From must be an address on a verified domain of the key’s application, any local part. The name in the From header is kept.
  • One e-mail is one message. Every envelope recipient (RCPT TO) goes in one call, as one message with one id in the log and one webhook per recipient. Each recipient counts against the daily limit and is charged as one e-mail, as on the API.
  • To and Cc are kept, Bcc stays hidden. A recipient named in the To header is sent as to, one in the Cc header as cc, with the display names the headers give; every other envelope recipient is bcc, never shown in the copies the others receive. The To and Cc headers the recipients see are written from these lists, so they show only addresses you actually sent to: an address in the To header that is not an envelope recipient is not shown. An e-mail to one recipient that is in the To header, or in no header, is sent exactly as before, in the API’s original shape.
  • Reply-To (every address, up to 10), the subject, the HTML part and the text part are kept as written.
  • Your headers are honoured: headers such as List-Unsubscribe, List-Unsubscribe-Post, List-ID, In-Reply-To, References and your own X- headers are passed on under the API’s header rules, at most 15, the unsubscribe and threading headers first. A header the API would refuse is dropped and the e-mail still goes; headers mail programs add on the way (X-Mailer, X-MS-Exchange-…, X-Google-…, ARC-… and the like) are left out.
  • Attachments are carried, up to 10 MiB together (the whole e-mail can be up to 12 MiB). Executable types (such as .exe, .bat, .cmd, .com, .js, .msi, .scr and .vbs) are refused.

Tawked’s own headers

These headers are read by the server and never reach the recipients. An address the API would refuse is refused at RCPT TO with 550 5.1.3, for that recipient alone: the others go on. Sending the same e-mail again is safe: without an idempotency header, the server names the message by its Message-ID, its content and its recipients, so a retry of the same e-mail is not sent twice. A recipient on the account’s suppression list is skipped and the reply says so (250 … 1 suppressed recipient(s) skipped); when every recipient is suppressed the reply is 550 5.7.1. The messages appear in Email → Messages and send the same email.* webhooks as the API’s. An SMTP e-mail cannot be scheduled: it is sent at once.

Reply codes

A reply that starts with 5 is permanent: fix the cause before sending again. A reply that starts with 4 is temporary: your mail client or library retries later on its own. The reply’s text says which case it is. An e-mail counts as one request against the account’s per-second rate (10 a second at the default daily limit, shared with the API) and as its recipients against the daily limit.

Laravel

In .env:
MAIL_SCHEME=smtp on port 587 upgrades the connection with STARTTLS. For port 465 use MAIL_SCHEME=smtps and MAIL_PORT=465. Laravel versions before 11 read MAIL_ENCRYPTION=tls instead of MAIL_SCHEME.

WordPress

With the WP Mail SMTP plugin, choose Other SMTP as the mailer and fill in: Set From Email to an address on your verified domain and turn on Force From Email. For port 465, choose SSL as the encryption.

Nodemailer

For port 465, set port: 465 and secure: true, and leave out requireTLS. Keep the key on the server, in an environment variable or a secret store, never in code a browser or a phone app receives.

Templates and test keys

  • Send by template with two headers: X-Tawked-Template: <id or alias> and X-Tawked-Template-Variables: <a JSON object> (unfolded, up to 16 KiB). The message’s own HTML and text are then not sent, and its Subject only when it is not empty. A variables header that is not a JSON object is refused with 550 5.7.1 template_variables_invalid, and nothing is sent. See Templates.
  • A test key (tk_test_) signs in as well, and sends in test mode: to the simulator addresses only, nothing sent, nothing charged.
Last modified on October 20, 2026