Skip to content

Block email delivery in local environments - #115

Merged
katsar0v merged 3 commits into
mainfrom
feature/issue-114-local-email-guard
Jul 17, 2026
Merged

Block email delivery in local environments#115
katsar0v merged 3 commits into
mainfrom
feature/issue-114-local-email-guard

Conversation

@katsar0v

Copy link
Copy Markdown
Owner

Summary

  • add a filterable local-environment guard based on wp_get_environment_type() and local site/home host fallbacks
  • stop queued email before queue records are queried or mutated, and return a specific error for normal and SMTP test sends
  • show a persistent warning to administrators on Mail System screens; update Bulgarian and German translations

Why

Local clones may retain real SMTP credentials, allowing campaign, one-time, opt-in, Bcc, and test messages to leave a development site.

Validation

  • git diff --check
  • msgfmt -c for Bulgarian and German translation catalogues
  • PHPUnit not run (requested)
  • Docker not used (requested)

Fixes #114

Kilo added 3 commits July 17, 2026 09:04
…al-email-guard

# Conflicts:
#	languages/mail-system-bg_BG.mo
#	languages/mail-system-bg_BG.po
#	languages/mail-system-de_DE.mo
#	languages/mail-system-de_DE.po
#	languages/mail-system.pot
@katsar0v
katsar0v marked this pull request as ready for review July 17, 2026 07:39
@katsar0v
katsar0v merged commit 919974e into main Jul 17, 2026
6 checks passed
@katsar0v
katsar0v deleted the feature/issue-114-local-email-guard branch July 22, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enhancement: block outbound email in local environments and show an admin notice

1 participant