Skip to main content
Use SMTP when your framework, CMS plugin or sign-in service sends email over SMTP instead of calling an API. Each message goes through the same checks, limits and logs as the REST API.

Settings

Settings > Email Service > SMTP Credentials shows the host, port 465 and the username, with copy buttons. Port 2587 is a second STARTTLS port, for networks that block 587.

Before you start

You need two things:
  1. A verified domain. The sender address must be on it. See Domains.
  2. An API key with the Send Emails permission, used as the password. See API keys. A test key works too: its mail is simulated, not delivered.

Examples

In a third-party service, open its custom SMTP settings and enter the values above. Use a sender address on your verified domain.

How Hiveku reads a message

  • Sign-in. The username must be apikey and the password a key that may send. The key is checked when the client signs in.
  • Sender. The envelope sender (MAIL FROM) must be an address on one of your verified domains, or the message is refused. The From header, with its name, is used when it is on a verified domain. Otherwise Hiveku sends from the envelope address, without a name.
  • Recipients. The envelope decides who receives the message. Addresses in the To and Cc headers are shown as To and Cc. Every other recipient gets a hidden copy, as Bcc. At most 50 recipients per message.
  • Size. At most 25 MB per message, as sent.
  • What is kept. Reply-To, attachments (inline images too), and these headers: List-Unsubscribe, List-Unsubscribe-Post, List-Id, In-Reply-To, References, Auto-Submitted, Precedence, and X- headers except reserved ones such as X-Hiveku-. At most 15 headers. Other headers are dropped, and Hiveku sets From, To, Cc and Subject itself.
  • Subject. A message without one is sent as “(No Subject)”.
  • Tags. SMTP messages carry no tags. Use the REST API if you need them.
  • Retries. A client that sends the same message again, byte for byte, after a lost reply gets the first email’s answer. The message goes out once.
  • Allowed domains. A key limited to some domains refuses a sender on any other, over SMTP too.
X- headers reach your recipients as they are. Remove headers meant only for an old provider, so they do not leak internal data.

Replies

A message Hiveku takes is answered 250 Message queued: and the email’s id. Find it in Settings > Email Service > Email Logs. With a key that is not a production key, the reply says the message was simulated and nothing was delivered. When Hiveku refuses, the reply code says whether to retry: The reply text says what happened.

Limits

SMTP shares the limits of the REST API: your plan’s monthly emails and each key’s rate. See Limits. SMTP messages also fire webhook events, like any other email.