Skip to content

[codex] Update docs and fix confirmation email wrapper - #100

Merged
katsar0v merged 6 commits into
mainfrom
codex/mail-system-confirmation-email-wrapper
Jun 7, 2026
Merged

[codex] Update docs and fix confirmation email wrapper#100
katsar0v merged 6 commits into
mainfrom
codex/mail-system-confirmation-email-wrapper

Conversation

@katsar0v

@katsar0v katsar0v commented Jun 7, 2026

Copy link
Copy Markdown
Owner

What changed

  • Applies the configured email header and footer to opt-in confirmation emails.
  • Formats the translated confirmation body as safe HTML paragraphs and links the confirmation URL so it renders correctly inside the branded email template.
  • Adds regression coverage for the opt-in confirmation body wrapper.
  • Includes the existing local documentation/slug updates that were already ahead of origin/main on local main.

Why

The PDF download email already wrapped its body with the configured Mail System header and footer, but the double opt-in confirmation email was sent from the public subscribe flow without that wrapper. This made the confirmation email appear unbranded while the PDF email looked correct.

Validation

  • php -l public/class-mskd-public.php
  • php -l tests/Unit/class-publicsubscriptiontest.php
  • php ./vendor/bin/phpunit --configuration tests/phpunit.xml --filter PublicSubscriptionTest
  • php ./vendor/bin/phpunit --configuration tests/phpunit.xml --filter EmailHeaderFooterTest
  • php ./vendor/bin/phpunit --configuration tests/phpunit.xml --filter OptInConfirmationTest
  • php ./vendor/bin/phpunit --configuration tests/phpunit.xml
  • php ./vendor/bin/phpcs public/class-mskd-public.php tests/Unit/class-publicsubscriptiontest.php

@katsar0v
katsar0v marked this pull request as ready for review June 7, 2026 12:36
@katsar0v
katsar0v merged commit a2db7a4 into main Jun 7, 2026
5 of 6 checks passed
@katsar0v
katsar0v deleted the codex/mail-system-confirmation-email-wrapper 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.

1 participant