Skip to content

Add string based Add overload to HeaderCollection#155

Open
Figosen wants to merge 1 commit intoActiveCampaign:mainfrom
Figosen:headercollection-add-overload
Open

Add string based Add overload to HeaderCollection#155
Figosen wants to merge 1 commit intoActiveCampaign:mainfrom
Figosen:headercollection-add-overload

Conversation

@Figosen
Copy link

@Figosen Figosen commented Mar 4, 2026

This PR adds an overload to HeaderCollection allowing headers
to be added using a simple key/value pair:

Headers.Add("X-CUSTOM-HEADER", "Header content");

This makes the C# test code on the instruction page for Transactional Stream able to run without changes. It simplifies usage when creating PostmarkMessage instances without needing to construct MailHeader objects manually.

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