public function setHtmlBody($text) {
    if (!is_string($text)) {
      $error = sprintf("HTML text given is not a string (Actual type: %s).",
                       gettype($text));
      throw new \InvalidArgumentException($error);
    }
    $this->message->setHtmlbody($text);
  }
public function setHtmlBody($text) {
    if (!is_string($text)) {
      $error = sprintf("HTML text given is not a string (Actual type: %s).",
                       gettype($text));
      throw new \InvalidArgumentException($error);
    }
    $this->message->setHtmlbody($text);
  }
public function setHtmlBody ( $ text ) { if ( ! is_string ( $ text ) ) { $ error = sprintf ( "HTML text given is not a string (Actual type: %s)." , gettype ( $ text ) ) ; throw new \ InvalidArgumentException ( $ error ) ; } $ this -> message -> setHtmlbody ( $ text ) ; }
Sets HTML content for the email body.

@param string $text HTML to add.
@throws \InvalidArgumentException If text is not a string.
Sets HTML content for the email body .