PHPMailer\PHPMailer
PHPMailer::isHTML()
Sets message type to HTML or plain.
{} It's a method of the class: PHPMailer{}
No Hooks.
Return
null
. Nothing.
Usage
$PHPMailer = new PHPMailer(); $PHPMailer->isHTML( $isHtml );
- $isHtml(true|false)
- True for HTML mode
Default: true
Code of PHPMailer::isHTML() PHPMailer::isHTML WP 6.0
public function isHTML($isHtml = true) { if ($isHtml) { $this->ContentType = static::CONTENT_TYPE_TEXT_HTML; } else { $this->ContentType = static::CONTENT_TYPE_PLAINTEXT; } }