postmark-wordpress icon indicating copy to clipboard operation
postmark-wordpress copied to clipboard

Allow sending custom headers

Open MultiSuperFreek opened this issue 7 months ago • 0 comments

When adding headers to the $headers array in the wp_mail filter, only a few recognized headers ('Content-Type', 'Cc', 'Bcc', 'Reply-To', 'From', 'X-PM-Track-Opens', 'X-PM-TrackLinks', 'X-PM-Tag') are picked up by the plugin, and the rest is just silently dropped. This PR adds headers that are not recognised now (and used by the plugin internally) to a custom headers array that is sent to the Postmark API, and thus end up in the message sent by Postmark.

MultiSuperFreek avatar Jun 23 '25 09:06 MultiSuperFreek