How to add a custom header MessageStream: broadcast for Postmark?

Created on 5 March 2025, 6 months ago

Problem/Motivation

I am using Postmark with this set up: Drupal Symfony Mailer > FAQ / tips > Send mail with Postmark .

I would like to change broadcast style from "Transactional" to "Broadcast":

What’s the difference between transactional and broadcast?
Transactional email is typically a unique, high-priority message sent to a single recipient. They are often triggered by something a user does or doesn’t do. Broadcast email, on the other hand, is sent to multiple recipients at once. Things like product update announcements or terms of service notices are examples of broadcast emails.

https://postmarkapp.com/message-streams#difference-between-transactional...

As I understand it, this means adding a line to the header, like this (at the bottom):

Subject: My subject
Sender: Example <info@example.org>
From: My subject
MIME-Version: 1.0
Date: Wed, 05 Mar 2025 16:21:33 +0100
[...]
MessageStream: broadcast

I found Postmark Bridge new parameter #49777, and tried appending the broadcast style via the DSN Transport, but it doesn't seem to get picked up, and I don't see message stream in the headers:

postmark+api://1d7286c9-b45a-40bf-89f7-0ed12346689@message_stream=broadcast
(was postmark+api://1d7286c9-b45a-40bf-89f7-0ed12346689@default)

This article may be of use? Sending email via postmark on symfony with different message streams.

Steps to reproduce

Want to add a custom head, but not sure how ...

Proposed resolution

  • Perhaps adding support for custom headers under /admin/config/system/mailer/policy/ is the best solution, since other email services could make use of this feature as well, and be a feature to consider?
  • Check if a parameter appended at the end, such as Transport such as this can be made to work:
    postmark+api://1d7286c9-b45a-40bf-89f7-0ed12346689@message_stream=broadcast

Thanks!

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇰Denmark ressa Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024