/** * Adds body without inline attatchments. * * @ignore * @param \BLW\Model\MIME\Message $MimeMessage */ public function _addBodyWithoutInlineAttachments(MIMEMessage $MimeMessage) { // Add Body $MimeMessage->getBody()->addSection(new Section('multipart/alternative')); // 1. Text $MimeMessage->getBody()->addPart(new QuotedPrintable('text/html', $this->_Text, 'utf-8')); // 2. HTML if (($Document = $this->_HTML) instanceof \DOMDocument) { $MimeMessage->getBody()->addPart(new QuotedPrintable('text/html', $Document->saveHTML(), 'utf-8')); } // End multipart/alternative $MimeMessage->getBody()->endSection(); }
/** * @depends test_construct * @covers ::getBody */ public function test_getBody() { $this->assertInstanceof('\\BLW\\Type\\MIME\\IBody', $this->MimeMessage->getBody(), 'IMimeMessage::getBody() returned an invalid result'); }