close
Skip to content

[2.x] feat(mail): add Postmark driver#4455

Merged
imorland merged 1 commit into2.xfrom
im/feat-4442-postmark-driver
Mar 15, 2026
Merged

[2.x] feat(mail): add Postmark driver#4455
imorland merged 1 commit into2.xfrom
im/feat-4442-postmark-driver

Conversation

@imorland
Copy link
Copy Markdown
Member

Summary

Closes #4442.

The symfony/postmark-mailer bridge is already a dependency of flarum/core but no driver was ever wired up. This adds PostmarkDriver following the exact same pattern as the existing MailgunDriver.

  • PostmarkDriver — implements DriverInterface with mail_postmark_token (required server token) and mail_postmark_message_stream (optional, for Postmark's message streams feature)
  • MailServiceProvider — registers 'postmark' => PostmarkDriver::class in the supported drivers map
  • core.yml — adds locale keys: mail_postmark_token_label, mail_postmark_message_stream_label, postmark_heading, postmark_description

Test plan

  • 11 unit tests in PostmarkDriverTest covering driver metadata, validation (valid config, missing token, whitespace in token, optional message stream), and transport construction (with and without message stream)
  • Integration test asserting postmark appears in /api/mail/settings fields with the correct keys
  • All existing MailTest integration tests continue to pass

The symfony/postmark-mailer bridge is already a dependency of flarum/core.
This adds a PostmarkDriver to expose it as a selectable mail driver,
consistent with the existing Mailgun driver.

Supports the server token (required) and an optional message stream setting
for Postmark's message streams feature.
@imorland imorland requested a review from a team as a code owner March 15, 2026 08:49
@imorland imorland added this to the 2.0.0-beta.8 milestone Mar 15, 2026
@imorland imorland merged commit 0eb1f19 into 2.x Mar 15, 2026
27 checks passed
@imorland imorland deleted the im/feat-4442-postmark-driver branch March 15, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.x] add Postmark driver

1 participant