public function setFormat($format)
{
if (strtolower($format) === 'html') {
$this->format = 'html';
$this->mimeType('text/html');
$this->emailTemplate->setPlaintext(false);
} else {
$this->format = 'text';
$this->mimeType('text/plain');
$this->emailTemplate->setPlaintext(true);
}
return $this;
}