/**
* Build Final Body and attachments
*
* @return void
*/
protected function buildMessage() { if ($this->wordWrap === true &&
$this->mailType !== 'html'
) { $this->body =
$this->
wordWrap($this->body
);
} $this->
writeHeaders();
$hdr =
($this->
getProtocol() === 'mail'
) ?
$this->newline : '';
$body = '';
switch ($this->
getContentType()) { case 'plain':
$hdr .= 'Content-Type: text/plain; charset='
.
$this->charset
.
$this->newline
. 'Content-Transfer-Encoding: '
.
$this->
getEncoding();