=== 404ops SMTP Mail Relay ===
Contributors: spwhite
Tags: smtp, gmail, email log, mailer, deliverability
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.9.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Route WordPress email through SMTP, Gmail, Outlook/Microsoft 365, Zoho Mail, SendGrid, SES, Mailgun, Postmark or Brevo, with logs and resend. Free.

== Description ==
SMTP Mail Relay routes your WordPress site's email through the mailer you choose. When logging is enabled, it records send attempts and their status.

* **Nine mailers, one screen,** each with a connection check and a test-send button.
* **Automatic failover to a backup mailer.** Mail Relay retries eligible failures through your configured backup. After a native SMTP failure, it keeps each recipient in their original To, Cc or Bcc role and retries only when it can determine that the primary did not submit the message for that recipient. SendGrid, Postmark and Zoho Mail require a To address. Check the primary and backup providers before resending. A logged SMTP result can cover several recipients, so Mail Relay asks you to confirm that check before resending a stored SMTP message.
* **Gmail, Outlook and Zoho on your own OAuth client,** with send-only permissions, so no relay service holds your tokens.
* **Searchable email log** with CSV export and retention settings. Resending requires message content to have been stored when the original attempt was logged.
* **Bounce and complaint webhooks** for SendGrid, Mailgun, Postmark, Amazon SES and Brevo, verified before anything is written. Configured webhooks record recognized events per recipient when they match a retained log entry.
* **Deliverability check.** SPF, DKIM, DMARC, MX and domain alignment for the domain you send from, an optional test send, and every result explained with its fix.
* **Your AI agent can read the log.** Read-only WordPress abilities (MCP-ready) for administrators, with recipients masked and no message bodies.
* **Routing rules** by From address, From domain, recipient domain or subject.
* **Multisite network baseline.** One relay configuration for every site without credentials of its own.
* **Optional WordPress AI Diagnose, spam-risk checks and routing suggestions.** Configure a compatible provider in Settings → Connectors, then enable Mail Relay AI. Routing suggestions send aggregate counts, including sending addresses and recipient domains; they exclude subjects, message bodies and full recipient addresses.
* **Import from your current SMTP plugin.** Mail Relay has nine runtime drivers: SMTP, Gmail/Google Workspace, Outlook.com/Microsoft 365, Zoho Mail, SendGrid, Amazon SES, Mailgun, Postmark, and Brevo. The Import tab reads WP Mail SMTP, Easy WP SMTP, Post SMTP or FluentSMTP. Credentials are encrypted at rest.

= Pro =

* **Bounce tracking for SMTP, Gmail, Outlook and Zoho.** Returned mail and spam reports are read from a mailbox you choose, read-only, and matched to the log.
* **Bounce analytics:** rates by day and mailer, reasons in plain English, and the addresses to stop sending to.
* **A per-recipient delivery timeline.**
* **A circuit breaker over failover, plus an incident log.** Pro records the primary failure and opens the circuit when the threshold is reached. For API mailers, it routes eligible messages to the backup during the cooldown and probes the primary before switching back. Native SMTP sends continue through WordPress.
* **Deliverability alerts** by email, Slack, Discord, Microsoft Teams, Telegram or your own webhook.
* **A weekly AI deliverability report** using a WordPress AI connector and a **network-wide log browser** for multisite.

== External services ==
These disclosures describe when Mail Relay and the separately installed Pro add-on contact external services, what they send, and which provider terms apply.

* **Your mailer (the plugin's core function).** Each outgoing message (recipients, subject, body, headers, attachments, sender identity) goes to the mailer you choose: your own SMTP server; Gmail/Google Workspace (`accounts.google.com`, `oauth2.googleapis.com`, `gmail.googleapis.com`); Outlook.com/Microsoft 365 (`login.microsoftonline.com`, `graph.microsoft.com`); Zoho Mail (`accounts.zoho.*` and `mail.zoho.*` for your data center); SendGrid (`api.sendgrid.com`); Amazon SES (`email.<region>.amazonaws.com`); Mailgun (`api.mailgun.net` or `api.eu.mailgun.net`); Postmark (`api.postmarkapp.com`); Brevo (`api.brevo.com`). The connection and test-send checks call the same hosts and use the credentials or tokens you configured.
* **Account authorization for Gmail, Microsoft and Zoho.** When you connect one of these mailers, your browser opens its authorization service with your app's client ID, the requested permissions, the WordPress return URL and a temporary state value. To complete the connection, your site exchanges the authorization code with that provider using the app's client ID, client secret and return URL. The plugin sends the app credentials and refresh token to the same provider when it needs a new access token. Mail API requests use the access token to authenticate.
* **WordPress AI (optional).** When an administrator enables Mail Relay AI and requests Diagnose, spam-risk analysis or routing suggestions, WordPress AI may contact a compatible provider configured under Settings > Connectors. Pro weekly reports require separate consent and run on their configured schedule. Provider discovery may contact services, and the provider may charge for requests.
* **Amazon SNS (only with SES bounce webhooks).** The plugin fetches the SNS signing certificate from `sns.<region>.amazonaws.com` and visits the subscription-confirmation URL once. These HTTPS requests disclose standard network and request metadata to AWS. AWS [Service Terms](https://aws.amazon.com/service-terms/) and [Privacy](https://aws.amazon.com/privacy/) apply.
* **Public DNS.** The domain and deliverability checks perform standard SPF, DKIM, DMARC and MX lookups for the domain you check. The Pro domain-authentication monitor can perform background DNS checks after its active mailer is configured and can record a local baseline before you configure an alert destination.
* **Your bounce mailbox (Pro only, and only if you set it up).** The add-on connects to the IMAP server you enter (for example `imap.gmail.com`) and uses TLS for authentication and mailbox access. It sends your mailbox username, password and selected folder. During scheduled polling, it also sends search criteria and message IDs assigned by the mailbox, then reads message content and dates to identify delivery reports. Polls are scheduled every 15 minutes. The connection test authenticates and opens the folder without fetching messages. The folder is opened read-only, and fetched messages are left unread if they were unread before the fetch.
* **404ops licensing (separate Pro add-on).** The add-on uses `licensing.404ops.com` for activation, revalidation, deactivation and update checks. Requests can include the licence key, entitlement and release identifiers, the site fingerprint (a SHA-256 hash of the normalized site address) and machine identifiers. Initial activation can also send the site host, port and path as the machine label. See the [licensing service terms](https://404ops.com/licensing/terms) and [licensing privacy notice](https://404ops.com/licensing/privacy).
* **Pro alert channels (Pro only, and only those you configure).** Your own webhook URL, the Slack, Discord or Microsoft Teams webhook address you paste in, or Telegram (`api.telegram.org`).


Sending a message through a mailer necessarily hands that mailer what it needs to deliver it — recipient address(es), subject, message body, headers, and any attachments, plus whichever sender identity (From name/address, Return-Path) you've configured. That is true of SMTP, Gmail/Google Workspace, and every API mailer alike, and is the plugin's core function rather than an extra disclosure. Where that provider is a paid or hosted third-party service, its own terms and privacy policy govern what happens to that data once it arrives: SendGrid ([Terms](https://www.twilio.com/en-us/legal/tos), [Privacy](https://www.twilio.com/en-us/legal/privacy)), Amazon SES ([AWS Service Terms](https://aws.amazon.com/service-terms/), [Privacy](https://aws.amazon.com/privacy/)), Mailgun ([Terms](https://www.mailgun.com/legal/terms/), [Privacy](https://www.mailgun.com/legal/privacy-policy/)), Postmark ([Terms](https://postmarkapp.com/terms-of-service), [Privacy](https://postmarkapp.com/privacy-policy)), Brevo ([Terms](https://www.brevo.com/legal/termsofuse/), [Privacy](https://www.brevo.com/legal/privacypolicy/)), Google, for Gmail/Google Workspace sending ([Terms](https://policies.google.com/terms), [Privacy](https://policies.google.com/privacy)), Microsoft, for Outlook.com/Microsoft 365 sending ([Terms](https://www.microsoft.com/en-us/servicesagreement), [Privacy](https://www.microsoft.com/en-us/privacy/privacystatement)), and Zoho, for Zoho Mail sending ([Terms](https://www.zoho.com/terms.html), [Privacy](https://www.zoho.com/privacy.html)).

AI Diagnose (free) never sends the message body, headers, or attachments of the email it's explaining — only that log row's own metadata: the recipient address (masked to its first character and domain by default — "AI" tab → "Mask recipients", on by default), the subject line, the send status, which mailer and source plugin were involved, the mailer's own error/response text, and the sending domain's SPF/DKIM/DMARC verdicts. The pre-send spam-risk check (free) sends the subject you enter, up to the first 4,000 characters of the body you enter, and the identifiers of local heuristic findings to your configured AI provider. Treat that subject and body excerpt as content disclosed to that provider. Without an AI connection, the check uses local heuristics only and sends no AI request. AI routing suggestions (free) send less than either: aggregate counts only — per sending address and per recipient domain, per mailer, sent/bounced/failed counts, rates, and median send duration where the log records one — across about the last 30 days. No subject lines, message bodies, error text, or full recipient addresses are included; recipient domains appear only as bare domains with counts. The Pro weekly report is aggregate too: volume, failure rate, bounce categories, top failing domains, and domain-auth status across the whole reporting period, never anything tied to one message or recipient. Enable Mail Relay AI and configure a WordPress connector before requesting these actions. The scheduled weekly report requires a separate explicit acknowledgement. WordPress selects a compatible provider, which may process the data and charge for requests; review that provider’s terms and privacy policy. See [404ops AI privacy disclosures](https://404ops.com/wordpress-ai-privacy) for more detail. WordPress's built-in AI connectors include Anthropic ([API Terms](https://www.anthropic.com/legal/commercial-terms), [Privacy](https://www.anthropic.com/legal/privacy)), Google Gemini ([API Terms](https://ai.google.dev/gemini-api/terms), [Privacy](https://policies.google.com/privacy)) and OpenAI ([API Terms](https://openai.com/policies/services-agreement/), [Data Processing Addendum](https://openai.com/policies/data-processing-addendum/), [API data controls](https://developers.openai.com/api/docs/guides/your-data)). For an additional connector, consult its provider's terms and privacy policy.

A Pro generic webhook alert retains the notice subject, detail lines, site URL and time. Native Slack, Discord, Teams and Telegram alerts contain only a fixed deliverability-alert notice directing you to Mail Relay in WordPress; subjects, provider errors, detail lines and site URLs are omitted. Existing email alerts retain their details. Where that goes to a chat service rather than your own webhook, that service's own terms and privacy policy apply: Slack ([Terms](https://slack.com/terms-of-service), [Privacy](https://slack.com/trust/privacy/privacy-policy)), Discord ([Terms](https://discord.com/terms), [Privacy](https://discord.com/privacy)), Microsoft Teams ([Terms](https://www.microsoft.com/en-us/servicesagreement), [Privacy](https://www.microsoft.com/en-us/privacy/privacystatement)), and Telegram ([Terms](https://telegram.org/tos), [Privacy](https://telegram.org/privacy)).

== Installation ==
1. Upload the plugin files to `/wp-content/plugins/404ops-smtp-mail-relay`, or install through the WordPress Plugins screen directly.
2. Activate the plugin through the "Plugins" screen in WordPress.
3. The first-run wizard walks you through choosing a mailer (SMTP or an API provider) and entering its credentials.
4. Send a test email, check the receiving inbox, and review the attempt on the Email Log tab when logging is enabled.
5. For optional AI features, configure a compatible provider under **Settings → Connectors**, then explicitly enable Mail Relay AI on its **AI** tab. Pro weekly reports also require a separate acknowledgement on that tab before scheduled requests can run. Existing AI keys stay untouched and are not copied into WordPress Connectors.
6. Already running another SMTP plugin? Open the **Import** tab instead — it reads that plugin's saved settings and shows you what would be brought across before anything is written.
7. The plugin lives at **404ops → Mail Relay** in the admin menu — every 404ops plugin on the site shares that one "404ops" menu rather than taking a sidebar slot each. Its own sections (Dashboard, Logs, Mailers, Deliverability, Import, Alerts, AI, Advanced, License, Settings) are tabs across the top of that screen.

== Frequently Asked Questions ==
= What external services does Mail Relay use? =

See External services above for the data sent, when the requests occur, and links to the named providers’ terms and privacy policies. Optional usage diagnostics are recorded locally after opt-in. They contain versions, plan, mailer types, logging status, a send-volume range, and saved alert condition names. Mail Relay has no telemetry network transport.

= Is my SMTP password / API key stored securely? =

SMTP passwords and mailer API keys are encrypted at rest on your own site (libsodium, with an authenticated OpenSSL AES-256-GCM fallback when libsodium is unavailable), using a site-generated key. WordPress Connectors manages credentials for the optional AI features; Mail Relay does not store new AI provider keys. Existing legacy AI credentials are retained during an update and are not copied to Connectors.

= Where is the data stored? =

Every setting, the email log, and the audit log are stored in your site's own database.

= On multisite, who can see the network relay credentials? =

Only network administrators. The network baseline's credentials are stored in network storage (the sitemeta table), encrypted under a network-scoped key, and are readable only through WordPress's network-option API — a subsite administrator cannot read them, and this plugin never copies them into a site's own options. Inheriting sites are provisioned in memory, for the duration of each send; the site's own settings screen shows only that a secret is set, never its value. Applying the baseline to sites deletes their own relay credentials rather than copying anything, and a subsite that overrides the baseline does so with credentials of its own, which grant no access to anything network-stored. Gmail, Outlook/Microsoft and Zoho OAuth connections cannot be baselined at all — their tokens refresh mid-send and cannot be shared network-wide without writing them somewhere a subsite admin could read.

= What happens to my data if I uninstall the plugin? =

By default, nothing. Deactivating — or even removing — the plugin leaves your settings and email log in place. If you check "Remove all data when this plugin is uninstalled" on Settings → Advanced, then *removing* the plugin (not merely deactivating it) permanently deletes that site's Mail Relay logs, settings, credentials and AI consent flags. It removes only Mail Relay's legacy AI override and enabled flag, preserving shared AI settings and other plugins' entries. On multisite, each site's opt-in applies only to that site. The shared network baseline and its encryption key remain; a network administrator can use **Delete Baseline** in Network Settings to remove the baseline explicitly. Deactivating never deletes anything, regardless of this setting.

= Can I move my settings over from another SMTP plugin? =

Yes, from **WP Mail SMTP**, **Easy WP SMTP** (both its current settings and the older 1.x format), **Post SMTP** and **FluentSMTP**, on the Import tab. Mail Relay reads whichever of those plugins has settings saved on the site — it reads the saved settings themselves, so it works whether or not the old plugin is still active — and shows you a preview first: which mailer was found, which of Mail Relay's mailers it maps onto, every field that carries across, every setting that has no equivalent here, and exactly where each credential stands. Nothing is written until you confirm.

Credentials are the part that varies. Where the other plugin stored one in the database, Mail Relay reads it — decrypting or decoding whichever scheme that plugin used — and re-stores it encrypted at rest, the same way a password you typed in yourself is protected. Where the credential lives only in a `wp-config.php` constant, it was never in the database and cannot be migrated: the preview names the exact constant so you know which value to re-enter, and the rest of the connection is still imported. Gmail, Outlook/Microsoft and Zoho Mail OAuth tokens belong to the other plugin's registered application, so those connections are intentionally refused and you re-enter your own OAuth credentials; other OAuth sources are listed as skipped rather than half-imported.

The same honesty applies to mailers. Mail Relay has nine runtime drivers: SMTP, Gmail/Google Workspace, Outlook.com/Microsoft 365, Zoho Mail, Amazon SES, Mailgun, SendGrid, Postmark, and Brevo (Sendinblue). The importer carries across the six non-OAuth configurations — SMTP, Amazon SES, Mailgun, SendGrid, Postmark, and Brevo — while Gmail, Outlook/Microsoft and Zoho OAuth tokens are intentionally refused and must be re-entered using your own client registration. If the other plugin is sending through something else, that connection is listed as skipped with the reason, never quietly rewritten as a generic SMTP connection that would not work.

= Does importing change or delete anything in my old SMTP plugin? =

No. The importer only ever reads — it never writes to, clears or deactivates the other plugin, so if the result is not what you wanted, that plugin is still configured exactly as it was and you can switch straight back. On Mail Relay's own side, an import over an existing configuration requires an explicit confirmation, takes a copy of what was there first, and leaves an "Undo" button on the Import tab.

= Can I bring my old plugin's email log across too? =

From Post SMTP and FluentSMTP, yes — recipient, subject, delivery status and timestamp, with message bodies and headers included only if you have "Store message content" switched on. Large logs are copied in batches, so run the import again to continue. WP Mail SMTP and Easy WP SMTP keep no per-email log in their free versions (theirs is a paid add-on; what the free versions record is error text and the calling file, with no recipient, subject or status), so there is nothing there to import and the Import tab says so.

= Does the email log guarantee accurate delivery status? =

Each attempt gets one row, opened as "pending" and then resolved to "sent" or "failed" from what the mailer reported once the send returned. "Sent" means the mailer accepted the message, never a guarantee it reached the inbox.

What happens next comes from the providers. Connect the delivery webhook of SendGrid, Mailgun, Postmark, Amazon SES (via SNS) or Brevo on the Deliverability tab, and recognized events that match a retained log entry are recorded per recipient: delivered, delayed (the provider is retrying), bounced, complained, opened, and clicked, with the receiving server's reason when provided. Events with missing or unknown message IDs, or whose log entries were removed, cannot be matched. A bounce marks the row "bounced" or "soft bounced", a spam complaint "complained"; a delay alone never does, because most delayed mail is delivered later. Identical webhook retries are deduplicated when the same event identity or request bytes and batch position are available; providers that omit stable identities or change the batch may still produce duplicates. Mailbox events without an identity use their recipient, kind and time, and concurrent duplicates are possible.

SMTP and the Gmail, Outlook/Microsoft and Zoho mailers have no delivery webhooks; their bounces come back as email to the From or Return-Path mailbox. The Pro add-on can read that mailbox (read-only, over IMAP) and match returned mail and spam reports to the log by the original Message-ID or recipient. Without it, rows for those mailers reflect only what was known at the moment of sending.

= Can my AI assistant read the email log? =

Yes, if you want it to. The plugin registers four read-only WordPress abilities (list recent emails, explain one email, delivery statistics, and the sending-domain check), which the WordPress MCP adapter or Agent Gate can offer to an AI agent you connect. Only a logged-in administrator can call them. Recipients are masked to their first letter and domain, addresses inside subjects and errors are masked too, and message bodies, headers and raw provider responses are never included. Turn them off on the Advanced tab.

= What if Site Health says the mail database update is pending? =

An update can be running during the first requests after an upgrade. Wait briefly and check Site Health again. If the message persists, contact your site administrator or plugin support; do not remove the update lock while any request or background job could still be running the update.

For an administrator recovering an interrupted update: back up the database, stop incoming requests and background jobs on every web worker, and confirm the earlier update process has ended. Then use WP-CLI with the Free and Pro plugins skipped to remove the `ops404_mail_relay_schema_upgrade_lock` option for the affected site. On multisite, select that site with `--url`. Resume requests and check Site Health again; the next request retries the update. Contact support if the update does not finish.

= Where can I get help? =

Visit https://supportminer.404ops.com to open a support request.

== Credits ==
The admin screens use two typefaces bundled with the plugin and served from its own files, never from a remote host: Space Grotesk (Copyright 2020 The Space Grotesk Project Authors) and JetBrains Mono (Copyright 2020 The JetBrains Mono Project Authors), both licensed under the SIL Open Font License, Version 1.1 (https://openfontlicense.org). Each licence text ships beside its font in `vendor-prefixed/404ops/ui-kit/assets/fonts/`. The shared admin interface kit (`404ops/ui-kit`) is a 404ops library, privately namespaced and licensed GPL-2.0-or-later like this plugin. The plugin bundles no other third-party code.

== Screenshots ==
1. Dashboard: email attempts, accepted sends, failures and mailer status.
2. Search and filter example email log records, inspect statuses and export matching rows as CSV.
3. Choose active and backup mailers, configure routing rules and set sender identity.
4. Choose a mailer in the optional setup wizard.
5. How it works: WordPress messages go through a configured mailer, with an optional backup and local log.

== Changelog ==

= 1.9.3 =
* Fixed the AI routing cooldown across requests on sites using database-backed transients.
* Validated new chat webhook URLs and webhook Basic Auth usernames before saving.
* Prepared email log queries and removed an unused PHPMailer SMTP include from MIME generation.

= 1.9.2 =
* Corrected local feature access, service disclosures, administrative scripts and request validation for the WordPress review.
* Preserved eligible SMTP retry recipients and supported original sender and message format headers.
* Require an administrator to review provider delivery records before resending logged SMTP mail.
* Keep installed Pro features available independently of licence checks, with maintenance entitlement controlling downloads, updates and support.


= 1.9.1 =
* Fixed: remove an unnecessary database read after legacy AI settings cleanup.
* Clarified: describe dashboard counts and optional email logging accurately.

= 1.9.0 =
* Changed: optional AI features now use the WordPress AI Client and Settings → Connectors. Enable Mail Relay AI explicitly; scheduled Pro weekly reports require a separate acknowledgement. Existing AI keys are retained without being copied or used.
* Fixed: authenticate provider webhooks at the REST boundary, preserve delivery events on storage failures, and retain recoverable mailbox errors with the known older Pro companion.
* Fixed: preserve shared network relay credentials when one site opts into uninstall cleanup.
* Fixed: escape admin output at its final HTML context and defer Pro cron labels until translations are available.
* Updated: bundled draft translations and reproducible dependency packaging.

= 1.8.6 =
* Fixed: preserve delivery events in accepted provider batches, retry temporary storage failures, and recognize retries of events without timestamps.
* Improved: paginate delivery history in the email log and read-only email ability.

= 1.8.5 =
* Harden AI connection form nonce handling through the shared client patch.

= 1.8.4 =
* Added: guarded read-only administrative status interfaces.
* Added: five bundled draft language catalogs with checked WordPress loading.
* Improved: development test-session and catalog packaging checks.
= 1.8.3 =
* Changed: folder, main file and text domain renamed to match the plugin name (404ops-smtp-mail-relay).

= 1.8.2 =
* Updated the licence client (0.3.5): Pro keeps working after a licence expires.

= 1.8.1 =
* Fixed: removed dead links (updated the Zoho terms link).

= 1.8.0 =
* New: delivery events. Recognized webhook events (delivered, delayed, bounced, complained, opened, clicked) can be kept per recipient when they match a retained log entry, with the provider's time when supplied.
* New: Brevo delivery webhooks, alongside SendGrid, Mailgun, Postmark and Amazon SES.
* New: Deliverability tab. A guided check of SPF (duplicate records, +all, the 10-lookup limit), DKIM, DMARC, MX and domain alignment, an optional test send, each result explained; plus webhook setup for each provider with its URL, verification keys stored encrypted, and the last event received.
* New: the email log as read-only WordPress abilities for MCP and Agent Gate, with masked recipients and failures explained.
* New: routing rules can match the From domain.
* New (Pro): bounce tracking for SMTP, Gmail, Outlook and Zoho from a read-only IMAP mailbox; bounce analytics; per-recipient delivery timeline.
* Fixed: a delayed message no longer reads as soft-bounced after it is delivered; SES complaints name the complainer; Postmark auto-replies are not bounces.

= 1.7.8 =
* Updated the bundled licence client to 0.3.4.

= 1.7.7 =
* Pro update packages now publish with maintenance information and one shared licence client version.

= 1.7.6 =
* Updated the licence client and refreshed wording.

= 1.7.5 =
* Admin menu labels and headings drop the 404ops prefix; Composer loader hardened for Plugin Check.

= 1.7.4 =
* Changed: Code-quality clean-up for WordPress.org review: late escaping, input sanitising and documented database access. No change to features.

= 1.7.3 =
* Changed: Bundled libraries updated; translatable strings now use this plugin's text domain.

= 1.7.2 =
* Changed: requires WordPress 7.0 or newer (it was 6.9); tested up to WordPress 7.1.

= 1.7.1 =
* Changed: the plugin now requires WordPress 6.9 or newer and is tested up to WordPress 7.1.

= 1.7.0 =
* Fixed: the routing rule controls are now labelled for screen readers.
* Maintenance: the plugin now bundles its own prefixed copy of the 404ops UI kit, so its admin screens share one 404ops menu and stylesheet with the other 404ops plugins and each plugin can update its UI independently.
* Maintenance (Pro): uses licence client 0.3, and every Pro add-on now registers its own copy of the licence client so the newest one wins when several are active. Update all 404ops Pro add-ons together.
* Readme: adds an External services section and credits.

= 1.6.1 =
* Maintenance: AI features now use a private, namespaced copy of the AI client and the shared AI connection settings, so each 404ops plugin can update its AI code independently. If you use AI features, re-enter your AI connection once on the AI Connection screen. No other change.

= 1.6.0 =
* New: **AI routing suggestions** (#9) — analyze your send history and get routing proposals in plain English with the evidence printed beside them ("order emails fail 4% more on Brevo than Postmark"). Aggregated statistics only — never subjects, bodies or addresses; thin data says so instead of guessing. Every accepted rule appends through the same editor you use manually.

Older releases are listed in CHANGELOG.md.

== Upgrade Notice ==

= 1.9.1 =
Updates legacy AI settings cleanup and clarifies the email log description.

= 1.9.0 =
Requires WordPress 7.0+. Update Free before Pro. Configure Settings → Connectors, enable Mail Relay AI and separately acknowledge scheduled Pro weekly reports. Existing AI keys stay untouched; SMTP settings and logs are preserved.

= 1.8.4 =
Includes checked draft translations and administrative status reporting. Human linguistic review is separate.
= 1.8.1 =
Removes links that no longer work from the External services section. Text only; safe to update.

= 1.8.0 =
Feature release: delivery events, Brevo webhooks, the Deliverability tab, email-log abilities, and (Pro) mailbox bounce tracking and analytics. Adds one database table; safe to update.

= 1.7.4 =
Code-quality clean-up. Safe to update.

= 1.7.3 =
Bundled libraries updated. Safe to update.

= 1.7.2 =
Requires WordPress 7.0 or newer (it was 6.9). Safe to update.

= 1.7.1 =
Requires WordPress 6.9 or newer. Safe to update.

= 1.7.0 =
Maintenance release: accessibility labels on routing rules, bundles its own prefixed UI kit; Pro moves to licence client 0.3 (update all 404ops Pro add-ons together). Safe to update.

= 1.6.1 =
Maintenance release: AI features use a private copy of the AI client; re-enter your AI connection once. Safe to update.

= 1.6.0 =
Optional AI routing suggestions (BYOK) from your own log history. Safe to update.

= 1.5.0 =
Multisite support: network-level configuration (free) and cross-site log browsing (Pro). Single-site installs are unchanged.

= 1.4.2 =
Bounce and complaint webhooks for SendGrid, Mailgun, Postmark and SES. Safe to update; the endpoints only activate once you paste the provider credentials.

= 1.4.1 =
Internal licensing maintenance; no visible change.


= 1.4.0 =
Adds the Zoho Mail mailer. Register a Server-based client in the Zoho API Console ON THE CORRECT DATA CENTER, add the two scopes shown on the Mailers tab, paste the redirect URI, then Connect — about ten minutes.


= 1.2.0 =
* Feature release. No configuration changes needed.

= 1.1.3 =
Stored AI provider keys are now sealed with authenticated encryption; update recommended.
= 1.1.2 =
Fixes a Test Connection button that could report success on a bad SMTP host, and a full-data uninstall that left cached data behind; also discloses a previously-unlisted Pro licensing endpoint. Recommended for all sites.

= 1.1.0 =
New: Outlook.com and Microsoft 365 mailer, bring-your-own-credentials OAuth, free on every tier.

= 1.0.6 =
Pro now shows an early warning notice before licence-related features would lapse, and no longer keeps a revoked licence active forever on a site whose WP-Cron never runs. Pro users should update.

= 1.0.5 =
Maintenance release. No functional changes.

= 1.0.4 =
Fixes Pro licence activation and update checks against the real licence server. Pro users should update.

= 1.0.3 =
Maintenance release. No functional changes.

= 1.0.2 =
Fixes first-time Pro licence activation. Pro users on a licence that has never activated before should update.

= 1.0.1 =
Maintenance release. No functional changes.

= 1.0.0 =
First public release. SMTP plus SendGrid, Amazon SES, Mailgun, Postmark and Brevo, a full searchable email log with resend and CSV export, a free SPF/DKIM/DMARC checker, and BYOK AI failure diagnosis. Pro adds mailer failover and deliverability alerts.
