|
@@ 1741-1752 (lines=12) @@
|
| 1738 |
|
$textBoundary = 'alt-' . $boundary; |
| 1739 |
|
} |
| 1740 |
|
|
| 1741 |
|
if (isset($rendered['text'])) { |
| 1742 |
|
if ($multiPart) { |
| 1743 |
|
$msg[] = '--' . $textBoundary; |
| 1744 |
|
$msg[] = 'Content-Type: text/plain; charset=' . $this->_getContentTypeCharset(); |
| 1745 |
|
$msg[] = 'Content-Transfer-Encoding: ' . $this->_getContentTransferEncoding(); |
| 1746 |
|
$msg[] = ''; |
| 1747 |
|
} |
| 1748 |
|
$this->_textMessage = $rendered['text']; |
| 1749 |
|
$content = explode("\n", $this->_textMessage); |
| 1750 |
|
$msg = array_merge($msg, $content); |
| 1751 |
|
$msg[] = ''; |
| 1752 |
|
} |
| 1753 |
|
|
| 1754 |
|
if (isset($rendered['html'])) { |
| 1755 |
|
if ($multiPart) { |
|
@@ 1754-1765 (lines=12) @@
|
| 1751 |
|
$msg[] = ''; |
| 1752 |
|
} |
| 1753 |
|
|
| 1754 |
|
if (isset($rendered['html'])) { |
| 1755 |
|
if ($multiPart) { |
| 1756 |
|
$msg[] = '--' . $textBoundary; |
| 1757 |
|
$msg[] = 'Content-Type: text/html; charset=' . $this->_getContentTypeCharset(); |
| 1758 |
|
$msg[] = 'Content-Transfer-Encoding: ' . $this->_getContentTransferEncoding(); |
| 1759 |
|
$msg[] = ''; |
| 1760 |
|
} |
| 1761 |
|
$this->_htmlMessage = $rendered['html']; |
| 1762 |
|
$content = explode("\n", $this->_htmlMessage); |
| 1763 |
|
$msg = array_merge($msg, $content); |
| 1764 |
|
$msg[] = ''; |
| 1765 |
|
} |
| 1766 |
|
|
| 1767 |
|
if ($textBoundary !== $relBoundary) { |
| 1768 |
|
$msg[] = '--' . $textBoundary . '--'; |