Skip to content

Connections and providers

A connection is how your site sends email. You manage connections under Stacko Mail → Connections.

You can have two:

  • Primary: used for every email.
  • Backup (optional): if the primary fails, for example because of a wrong password or a provider outage, the email is sent through the backup instead.

Each connection has a Test button that checks it step by step without sending an email.

Service Type What you need
Brevo API API key
SendGrid API API key (with “Mail Send” access)
Mailgun API API key, sending domain, region
Postmark API Server API token
Other SMTP SMTP Host, port, encryption, username, password
WordPress default PHP mail() Nothing

API services send over normal HTTPS, so they work even when your host blocks email ports. They are usually faster than SMTP too.

WordPress default uses your server’s PHP mail(). It needs no setup, but those emails often land in spam or are blocked by the host. It’s what WordPress does when no connection is set up.

  • API key: in Brevo, open your name (top right) → SMTP & API → API Keys → Generate a new API key. It starts with xkeysib-.

Use an API key, not an SMTP key.

  • API key: in SendGrid, open Settings → API Keys → Create API Key and give it “Mail Send” access. It starts with SG..
  • Data region (under Advanced): Global by default. Choose EU only if your SendGrid account is pinned to the EU.
  • API key: in Mailgun, open Send → Sending → Domain settings → Sending API keys. Use a domain sending key.
  • Sending domain: the domain you verified in Mailgun, for example mg.example.com.
  • Region: US or EU. It must match where your Mailgun domain lives.
  • Server API token: in Postmark, open Servers → your server → API Tokens. An account token won’t work.
  • Message stream (under Advanced): leave it as outbound unless you created another transactional stream.

Choose Other SMTP for any email provider or web host that gives you SMTP details. Pick a preset to fill in the server settings, then enter your username and password.

Preset Host Port Encryption Notes
Gmail / Google Workspace smtp.gmail.com 587 TLS Username is your full Gmail address. The password must be an App Password, which needs 2-Step Verification.
Microsoft 365 / Outlook smtp.office365.com 587 TLS Your admin must enable “Authenticated SMTP” for the mailbox. Microsoft is retiring basic SMTP sign-in for many accounts, so an API service is more reliable.
Zoho Mail smtp.zoho.com 465 SSL Use smtp.zoho.eu or smtp.zoho.in for EU or India accounts. With 2FA on, use an app-specific password.
Yahoo Mail smtp.mail.yahoo.com 465 SSL Needs an app password.
iCloud Mail smtp.mail.me.com 587 TLS Use an app-specific password from appleid.apple.com.
Brevo (SMTP relay) smtp-relay.brevo.com 587 TLS Username is your Brevo SMTP login; password is an SMTP key. The Brevo API is usually faster.
SendGrid (SMTP relay) smtp.sendgrid.net 587 TLS The username is literally apikey; the password is your API key.
Amazon SES (SMTP) email-smtp.us-east-1.amazonaws.com 587 TLS Change the region in the host to match yours. Use SMTP credentials from the SES console, not your AWS access keys.
Hostinger smtp.hostinger.com 465 SSL Use the full email address you created in hPanel and its password.
GoDaddy Workspace smtpout.secureserver.net 465 SSL For GoDaddy Microsoft 365 mailboxes, use the Microsoft 365 preset.
My web host (cPanel, Plesk, SiteGround…) (you enter it) 465 SSL Usually mail.yourdomain.com. Find it in your hosting panel under Email Accounts → Connect Devices.
  • SMTP host: the server name only, without https://.
  • Encryption: TLS (STARTTLS) is recommended and usually uses port 587. SSL usually uses port 465. None is not secure and is meant only for local test servers.
  • Port: 587 for TLS, 465 for SSL.
  • Use authentication: almost every provider needs this.
  • Username: usually your full email address.
  • Password: your mailbox password or app password.

Under Advanced:

  • Upgrade to TLS automatically: if the server offers STARTTLS, use it even when Encryption is “None”. On by default.
  • Timeout (seconds): 15 by default (3 to 60).
  • Verify the server’s certificate: keep this on. Turn it off only for a server with a self-signed certificate you trust.
  • Passwords and API keys are encrypted in the database and are never shown again, not even to admins. The form shows Credentials saved (encrypted) instead.
  • To keep a saved password, leave the field empty when you edit the connection.
  • A saved password is tied to the server it was entered for. If you change the SMTP host, port or username, you need to enter the password again.
  • Developers can define credentials in wp-config.php instead. Those fields are then locked in the admin and show Set in wp-config.php. See wp-config.php constants.

Add a backup under Connections → Add a backup connection. If the primary connection fails, Stacko Mail tries the backup straight away. The email log shows which connection delivered each email.

The backup is not used when the problem is with the email itself, for example an invalid address or a missing attachment, because another service would fail the same way.

Use Swap primary and backup to switch their roles. Use Remove to delete a connection and its saved credentials. Removing the primary means WordPress goes back to sending with PHP mail().

You can get an alert whenever the backup has to be used.

Under Stacko Mail → Settings → Sender you can set who your emails come from:

  • From email: replaces WordPress’ default wordpress@yourdomain address. A real address on your own domain lands in the inbox more often.
  • From name: replaces WordPress’ default name, “WordPress”.
  • Force this From email for every email: use it even when a plugin sets its own From address. Turn this on if your email service only allows verified senders.
  • Force this From name for every email: the same for the name.
  • Send bounces to the From address: sets the Return-Path so undeliverable emails come back to you. This works for SMTP and WordPress default.

Without the “Force” options, your From email and name only replace WordPress’ generic defaults. Plugins that set their own sender (for example a form that uses the visitor’s address) keep it.