Skip to content

Error codes

Every failed email in the log has an error code. Stacko Mail shows it with the explanation and steps on this page. The same codes appear in:

Codes with a :mailer suffix (for example auth_failed:gmail) are not separate codes. They are the tailored explanation shown for that service when the base code occurs. The :gmail and :outlook versions are used for the Other SMTP mailer when the server is Gmail or Microsoft 365.

Codes marked usually temporary are worth retrying later. The backup connection is tried for every failure except invalid_address, no_recipients, attachment_failed and blocked, which are caused by the email itself.

The text below matches what the admin shows. Where it mentions “the message below”, it means the provider’s original error message, which the admin shows under the explanation.

The username or password was rejected

Your email server refused to log in with the saved details.

  1. Check the username — it is usually your full email address.
  2. Type the password again in Connections (it is easy to paste an extra space).
  3. If you changed the mailbox password recently, update it here too.

Gmail rejected the password

Gmail does not accept your normal Google password for SMTP. It needs an App Password.

  1. Turn on 2-Step Verification for the Google account.
  2. Go to myaccount.google.com/apppasswords and create an App Password.
  3. Paste the 16-character App Password into Connections (no spaces) and click Test.

Microsoft 365 rejected the login

Microsoft blocks basic SMTP sign-in for many mailboxes, even with the right password.

  1. Ask your Microsoft 365 admin to enable “Authenticated SMTP” for this mailbox.
  2. If security defaults are on, SMTP sign-in may be blocked for the whole organisation.
  3. Easier: use an API mailer such as Brevo, SendGrid, Mailgun or Postmark instead.

Brevo did not accept the API key

The key is wrong, was deleted, or is an SMTP key instead of an API key.

  1. Create a new API key in Brevo → SMTP & API → API Keys (it starts with “xkeysib-”).
  2. Paste it into Stacko Mail → Connections and click Test.
  3. Make sure there are no spaces before or after the key.

SendGrid did not accept the API key

The key is wrong, was revoked, or lacks permission to send.

  1. Create a new API key in SendGrid → Settings → API Keys, with “Mail Send” access (it starts with “SG.”).
  2. Paste it into Stacko Mail → Connections and click Test.
  3. Make sure there are no spaces before or after the key.

Mailgun did not accept the API key

The key is wrong, or it belongs to a different region (US vs EU).

  1. Create a new API key in Mailgun → Sending → Domain settings → Sending API keys.
  2. Paste it into Stacko Mail → Connections and click Test.
  3. Make sure there are no spaces before or after the key.
  4. Check that the Region setting matches your Mailgun account.

Postmark did not accept the token

The Server API token is wrong. An Account token will not work here.

  1. Create a new API key in Postmark → Servers → your server → API Tokens.
  2. Paste it into Stacko Mail → Connections and click Test.
  3. Make sure there are no spaces before or after the key.

An app password is required

Your account has 2-step verification on, so it needs a special app password for SMTP.

  1. Create an app password in your email account’s security settings (Google: myaccount.google.com/apppasswords).
  2. Use it as the password in Connections instead of your normal password.

SMTP sign-in is turned off for this mailbox

Microsoft 365 has “Authenticated SMTP” disabled for this mailbox or the whole organisation.

  1. In the Microsoft 365 admin center: Users → this user → Mail → Manage email apps → tick “Authenticated SMTP”.
  2. Or switch to an API mailer, which does not need SMTP sign-in.

No API key entered

This email service needs an API key to send.

  1. Open Connections, paste the API key from your provider’s dashboard and click Save.

The API key is not allowed to send email

The key exists, but it was created with limited permissions.

  1. Create a new key with “Mail Send” (full access to sending).
  2. Replace the old key in Connections.

The saved password can no longer be read

The security keys (salts) in wp-config.php changed — often after a migration or a security plugin reset — so Stacko Mail cannot decrypt the saved password.

  1. Open Connections and enter the password or API key again.
  2. Tip: define STACKO_MAIL_ENCRYPTION_KEY in wp-config.php so this never happens again.

Could not reach the email server (usually temporary, safe to resend later)

The connection was refused. Your web host may block outgoing email ports, or the host/port is wrong.

  1. Check the SMTP host and port (587 for TLS, 465 for SSL).
  2. Ask your host whether outgoing SMTP is blocked — DigitalOcean, Google Cloud and many shared hosts block it.
  3. Switch to an API mailer (Brevo, SendGrid, Mailgun, Postmark): they use normal HTTPS and are never blocked.

The port is blocked or wrong

Nothing answered on this port. Hosts often block email ports to stop spam.

  1. Try TLS on port 587, then SSL on port 465.
  2. If both fail, your host blocks SMTP. Use an API mailer instead — no ports needed.

The email server name does not exist

The SMTP host could not be found in DNS — usually a typo.

  1. Check the spelling, e.g. smtp.gmail.com (not smtp.gmial.com).
  2. Enter only the host name — no “https://” and no spaces.

The email server took too long to answer (usually temporary, safe to resend later)

The connection timed out. The server may be busy, or a firewall silently drops the connection.

  1. Try again in a few minutes.
  2. If it keeps happening, your host may be dropping SMTP traffic — use an API mailer instead.

The secure connection (TLS/SSL) failed

The encryption setting does not match the port, or the server’s certificate is invalid.

  1. Use TLS with port 587, or SSL with port 465 — not the other way round.
  2. If your host uses a self-signed certificate, ask them for the correct host name to use.

Brevo blocked this server’s IP address

Your Brevo account only allows API calls from approved IP addresses, and this server is not on the list.

  1. In Brevo, open Security → Authorised IPs.
  2. Add the IP shown in the error message, or turn off IP blocking.

Wrong Mailgun region

Your Mailgun domain lives in a different region (US or EU) than the one selected.

  1. Change Region in Connections to match your Mailgun account.

Mailgun does not know this domain

The sending domain is misspelled, not added in Mailgun, or in the other region.

  1. Copy the exact domain from Mailgun → Sending → Domains (often mg.yourdomain.com).
  2. Check the Region setting (US or EU).

The email service is having problems (usually temporary, safe to resend later)

The provider answered with a server error. This is usually temporary and not caused by your settings.

  1. Check the provider’s status page.
  2. Add a backup connection so emails keep flowing during outages.

The “From” address is not allowed

Your email service only sends from addresses or domains you have verified with it.

  1. Verify the From address or its domain in your email service.
  2. Or set a verified address in Stacko Mail → Settings → From email, and turn on “Force From email”.

SendGrid has not verified this sender

SendGrid only sends from a verified Single Sender or an authenticated domain.

  1. In SendGrid, open Settings → Sender Authentication and verify the domain (best) or the single sender.
  2. Then make sure the From email in Stacko Mail → Settings matches it.

Brevo has not validated this sender

Brevo only sends from senders you added and validated.

  1. In Brevo, open Senders, Domains & Dedicated IPs → Senders and add this address.
  2. Authenticate the domain too, for better delivery.

Postmark has no Sender Signature for this address

Postmark only sends from confirmed sender signatures or verified domains.

  1. In Postmark, open Sender Signatures and add or confirm the From address or domain.

The recipient’s mailbox does not exist

The receiving server said this address is unknown. The email cannot be delivered.

  1. Check the address for typos. Nothing is wrong with your email settings.

The recipient is on the provider’s block list

This address bounced or marked an earlier email as spam, so the provider will not send to it.

  1. Remove it from the suppression list in your provider’s dashboard if you are sure it is valid.

Mailgun sandbox can only send to approved recipients

You are using a Mailgun sandbox domain, which is for testing only.

  1. Add and verify your own domain in Mailgun and use it here.

An email address is invalid

One of the To, Cc, Bcc or From addresses is not a valid email address.

  1. Check the plugin or form that sent this email for a mistyped address.

The email had no recipient

The plugin that sent it did not include a To address.

  1. Check the notification settings of the plugin shown under “Sent by”.

Sending limit reached (usually temporary, safe to resend later)

Your email service is limiting how many emails you can send right now.

  1. Wait a little and try again.
  2. Check your plan’s hourly or daily limit with the provider.

Your plan’s email quota is used up

The provider stopped sending because you reached your plan limit.

  1. Upgrade the plan, wait for the next period, or add a backup connection.

Your email service account is restricted

The account is pending approval, suspended or not yet activated.

  1. Log in to the provider’s dashboard and follow their instructions, or contact their support.

The email is too large

The message with its attachments is bigger than the server accepts.

  1. Send smaller attachments, or a link to the file instead.

An attachment could not be added

The file does not exist anymore or cannot be read by WordPress.

  1. Check the plugin that sent this email: the attached file may have been deleted before sending.

The email service rejected the request

Something in the email or settings was not accepted. The provider’s message below has the details.

  1. Read the provider’s message below. If it mentions a field, check that setting in Connections.

The server could not send the email

WordPress tried to use the server’s PHP mail() function and it failed. Many hosts disable or limit it.

  1. Connect a real email service in Connections — it is free with Brevo and takes two minutes.

Sending is paused

Email control is set to pause all emails, so this one was not sent on purpose.

  1. Turn off “Pause all emails” in Settings when you are ready to send again.

The email service is not available

The connection uses a mailer that no longer exists (an add-on may have been removed).

  1. Open Connections and choose an email service again.

No connection is set up

Stacko Mail has nowhere to send this email.

  1. Open Connections and set up an email service.

An unexpected error happened while sending

The mailer stopped with an error. The technical message below has the details.

  1. Try sending a test email from Tools.
  2. If it keeps happening, copy the details and contact support.

The email server returned an error

The server refused the email. Its exact reply is shown below.

  1. Open the Timeline tab to see the full server conversation.

The email could not be sent

Something went wrong. The technical message below has the details.

  1. Send a test email from Tools to see each step of the connection.