| @@ 349-359 (lines=11) @@ | ||
| 346 | * |
|
| 347 | * @return string |
|
| 348 | */ |
|
| 349 | public function setTestMode($testMode) |
|
| 350 | { |
|
| 351 | if (filter_var($testMode, FILTER_VALIDATE_BOOLEAN)) { |
|
| 352 | $testMode = 'yes'; |
|
| 353 | } else { |
|
| 354 | $testMode = 'no'; |
|
| 355 | } |
|
| 356 | $this->message['o:testmode'] = $testMode; |
|
| 357 | ||
| 358 | return $this->message['o:testmode']; |
|
| 359 | } |
|
| 360 | ||
| 361 | /** |
|
| 362 | * @param string|int $campaignId |
|
| @@ 410-420 (lines=11) @@ | ||
| 407 | * |
|
| 408 | * @return mixed |
|
| 409 | */ |
|
| 410 | public function setDkim($enabled) |
|
| 411 | { |
|
| 412 | if (filter_var($enabled, FILTER_VALIDATE_BOOLEAN)) { |
|
| 413 | $enabled = 'yes'; |
|
| 414 | } else { |
|
| 415 | $enabled = 'no'; |
|
| 416 | } |
|
| 417 | $this->message['o:dkim'] = $enabled; |
|
| 418 | ||
| 419 | return $this->message['o:dkim']; |
|
| 420 | } |
|
| 421 | ||
| 422 | /** |
|
| 423 | * @param bool $enabled |
|
| @@ 427-437 (lines=11) @@ | ||
| 424 | * |
|
| 425 | * @return string |
|
| 426 | */ |
|
| 427 | public function setOpenTracking($enabled) |
|
| 428 | { |
|
| 429 | if (filter_var($enabled, FILTER_VALIDATE_BOOLEAN)) { |
|
| 430 | $enabled = 'yes'; |
|
| 431 | } else { |
|
| 432 | $enabled = 'no'; |
|
| 433 | } |
|
| 434 | $this->message['o:tracking-opens'] = $enabled; |
|
| 435 | ||
| 436 | return $this->message['o:tracking-opens']; |
|
| 437 | } |
|
| 438 | ||
| 439 | /** |
|
| 440 | * @param bool $enabled |
|