setClickTracking() public method

public setClickTracking ( boolean $enabled ) : string
$enabled boolean
return string
Exemplo n.º 1
0
 /**
  * Toggles clicks tracking on a per-message basis.
  * This setting has a higher priority than the domain-level setting.
  * Pass `true`, `false` or 'html' or 'htmlonly'.
  *
  * @param bool|string $value
  *
  * @return \Bogardo\Mailgun\Mail\Message
  */
 public function trackClicks($value)
 {
     $value = $value === 'htmlonly' ? 'html' : $value;
     $this->messageBuilder->setClickTracking($value);
     return $this;
 }