@@ -248,7 +248,11 @@ public function testSendEmailWithHeadersShouldCalledInfobipWithTheRightParameter
248
248
->addTextHeader ('X-Infobip-IntermediateReport ' , 'true ' )
249
249
->addTextHeader ('X-Infobip-NotifyUrl ' , 'https://foo.bar ' )
250
250
->addTextHeader ('X-Infobip-NotifyContentType ' , 'application/json ' )
251
- ->addTextHeader ('X-Infobip-MessageId ' , 'RANDOM-CUSTOM-ID ' );
251
+ ->addTextHeader ('X-Infobip-MessageId ' , 'RANDOM-CUSTOM-ID ' )
252
+ ->addTextHeader ('X-Infobip-Track ' , 'false ' )
253
+ ->addTextHeader ('X-Infobip-TrackingUrl ' , 'https://bar.foo ' )
254
+ ->addTextHeader ('X-Infobip-TrackClicks ' , 'true ' )
255
+ ->addTextHeader ('X-Infobip-TrackOpens ' , 'true ' );
252
256
253
257
$ this ->transport ->send ($ email );
254
258
@@ -280,6 +284,24 @@ public function testSendEmailWithHeadersShouldCalledInfobipWithTheRightParameter
280
284
Content-Disposition: form-data; name="messageId"
281
285
282
286
RANDOM-CUSTOM-ID
287
+ --%s
288
+ Content-Type: text/plain; charset=utf-8
289
+ Content-Transfer-Encoding: 8bit
290
+ Content-Disposition: form-data; name="trackingUrl"
291
+
292
+ https://bar.foo
293
+ --%s
294
+ Content-Type: text/plain; charset=utf-8
295
+ Content-Transfer-Encoding: 8bit
296
+ Content-Disposition: form-data; name="trackClicks"
297
+
298
+ true
299
+ --%s
300
+ Content-Type: text/plain; charset=utf-8
301
+ Content-Transfer-Encoding: 8bit
302
+ Content-Disposition: form-data; name="trackClicks"
303
+
304
+ true
283
305
--%s--
284
306
TXT,
285
307
$ options ['body ' ]
@@ -410,7 +432,10 @@ public function testSendEmailWithHeadersWithSuccess()
410
432
->addTextHeader ('X-Infobip-NotifyUrl ' , 'https://foo.bar ' )
411
433
->addTextHeader ('X-Infobip-NotifyContentType ' , 'application/json ' )
412
434
->addTextHeader ('X-Infobip-MessageId ' , 'RANDOM-CUSTOM-ID ' )
413
- ->addTextHeader ('X-Infobip-Track ' , 'false ' );
435
+ ->addTextHeader ('X-Infobip-Track ' , 'false ' )
436
+ ->addTextHeader ('X-Infobip-TrackingUrl ' , 'https://bar.foo ' )
437
+ ->addTextHeader ('X-Infobip-TrackClicks ' , 'true ' )
438
+ ->addTextHeader ('X-Infobip-TrackOpens ' , 'true ' );
414
439
415
440
$ sentMessage = $ this ->transport ->send ($ email );
416
441
@@ -423,6 +448,9 @@ public function testSendEmailWithHeadersWithSuccess()
423
448
X-Infobip-NotifyContentType: application/json
424
449
X-Infobip-MessageId: RANDOM-CUSTOM-ID
425
450
X-Infobip-Track: false
451
+ X-Infobip-TrackingUrl: https://bar.foo
452
+ X-Infobip-TrackClicks: true
453
+ X-Infobip-TrackOpens: true
426
454
%a
427
455
TXT,
428
456
$ sentMessage ->toString ()
0 commit comments