public function send(Zend_Mail
$mail) { $this->_isMultipart = false;
$this->_mail =
$mail;
$this->_parts =
$mail->
getParts();
$mime =
$mail->
getMime();
// Build body content
$this->
_buildBody();
// Determine number of parts and boundary
$count =
count($this->_parts
);
$boundary = null;
if ($count < 1
) { /**
* @see Zend_Mail_Transport_Exception
*/
throw new Zend_Mail_Transport_Exception('Empty mail cannot be sent'
);
}