return false;
} } //Set whether the message is multipart/alternative
if ($this->
alternativeExists()) { $this->ContentType =
static::CONTENT_TYPE_MULTIPART_ALTERNATIVE;
} $this->
setMessageType();
//Refuse to send an empty message unless we are specifically allowing it
if (!
$this->AllowEmpty &&
empty($this->Body
)) { throw new Exception($this->
lang('empty_message'
), self::STOP_CRITICAL
);
} //Trim subject consistently
$this->Subject =
trim($this->Subject
);
//Create body before headers in case body makes changes to headers (e.g. altering transfer encoding)
$this->MIMEHeader = '';
$this->MIMEBody =
$this->
createBody();
//createBody may have added some headers, so retain them