plain text part or html part.
Michael - S. I'm not 100% sure if this is correct, but if the type
is not explictly set here, it uses the default of
application/octet-stream and the message body is empty when sent.
$this->_htmlBody->setDescription(_("HTML Version of Message"));
$basepart->addPart($this->_htmlBody);
$mime->addPart($basepart);
+ $mime->setType('multipart/alternative');
} elseif (!empty($this->_htmlBody)) {
$mime->addPart($this->_htmlBody);
} elseif (!empty($this->_body)) {
$mime->addPart($this->_body);
+ $mime->setType('multipart/alternative');
}
foreach ($this->_parts as $mime_part) {
$mime->addPart($mime_part);