File tree 3 files changed +5
-1
lines changed
src/Symfony/Component/Mailer/Bridge/Infobip 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ CHANGELOG
5
5
---
6
6
7
7
* Add reporting behavior thanks to new attributes support
8
+ * Add header to disable tracking that is enabled by default on API V3
8
9
9
10
6.2
10
11
---
Original file line number Diff line number Diff line change @@ -409,7 +409,8 @@ public function testSendEmailWithHeadersWithSuccess()
409
409
->addTextHeader ('X-Infobip-IntermediateReport ' , 'true ' )
410
410
->addTextHeader ('X-Infobip-NotifyUrl ' , 'https://foo.bar ' )
411
411
->addTextHeader ('X-Infobip-NotifyContentType ' , 'application/json ' )
412
- ->addTextHeader ('X-Infobip-MessageId ' , 'RANDOM-CUSTOM-ID ' );
412
+ ->addTextHeader ('X-Infobip-MessageId ' , 'RANDOM-CUSTOM-ID ' )
413
+ ->addTextHeader ('X-Infobip-Track ' , 'false ' );
413
414
414
415
$ sentMessage = $ this ->transport ->send ($ email );
415
416
@@ -421,6 +422,7 @@ public function testSendEmailWithHeadersWithSuccess()
421
422
X-Infobip-NotifyUrl: https://foo.bar
422
423
X-Infobip-NotifyContentType: application/json
423
424
X-Infobip-MessageId: RANDOM-CUSTOM-ID
425
+ X-Infobip-Track: false
424
426
%a
425
427
TXT,
426
428
$ sentMessage ->toString ()
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ final class InfobipApiTransport extends AbstractApiTransport
38
38
'X-Infobip-NotifyUrl ' => 'notifyUrl ' ,
39
39
'X-Infobip-NotifyContentType ' => 'notifyContentType ' ,
40
40
'X-Infobip-MessageId ' => 'messageId ' ,
41
+ 'X-Infobip-Track ' => 'track ' ,
41
42
];
42
43
43
44
private string $ key ;
You can’t perform that action at this time.
0 commit comments