PHPMailer\PHPMailer

PHPMailer::isHTML()publicWP 1.0

Sets message type to HTML or plain.

Метод класса: PHPMailer{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$PHPMailer = new PHPMailer();
$PHPMailer->isHTML( $isHtml );
$isHtml(true|false)
True for HTML mode
По умолчанию: true

Код PHPMailer::isHTML() WP 6.5.2

public function isHTML($isHtml = true)
{
    if ($isHtml) {
        $this->ContentType = static::CONTENT_TYPE_TEXT_HTML;
    } else {
        $this->ContentType = static::CONTENT_TYPE_PLAINTEXT;
    }
}