webCOMAND

mail::html()

Specify that this email message contains HTML and should be sent as such.  More specifically, send the header: Content-Type: text/html; charset=utf-8

Prototype

void html(boolean $is_html = TRUE)

Parameters

  • is_html - If TRUE (default), the email will be sent as HTML.  If FALSE, the email will not be sent as HTML.

Example

$mail = new \io_comand_email\mail(
    'webmaster@webcomand.com',
    'Testing',
    "<p>This is a test.<br/>\nTesting 1, 2, 3.</p>"
);
$mail->html();
$mail->send();