Skip to content

Commit 60c3c81

Browse files
christophrumpelChristoph Rumpel
andauthored
Check for given message stream id and add to header if given (#35755)
Co-authored-by: Christoph Rumpel <[email protected]>
1 parent d44ed21 commit 60c3c81

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Illuminate/Mail/MailManager.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,13 @@ protected function createMailgunTransport(array $config)
327327
*/
328328
protected function createPostmarkTransport(array $config)
329329
{
330+
$headers = isset($config['message_stream_id']) ? [
331+
'X-PM-Message-Stream' => $config['message_stream_id'],
332+
] : [];
333+
330334
return tap(new PostmarkTransport(
331-
$config['token'] ?? $this->app['config']->get('services.postmark.token')
335+
$config['token'] ?? $this->app['config']->get('services.postmark.token'),
336+
$headers
332337
), function ($transport) {
333338
$transport->registerPlugin(new ThrowExceptionOnFailurePlugin());
334339
});

0 commit comments

Comments
 (0)