|
@@ 724-728 (lines=5) @@
|
| 721 |
|
$AltBody = $AltBody.$sigTextHtml; |
| 722 |
|
} |
| 723 |
|
// now set the body |
| 724 |
|
if ($AltBody && ($html_body = $mailObject->findBody('html'))) |
| 725 |
|
{ |
| 726 |
|
if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' -> '.$AltBody); |
| 727 |
|
$html_body->setContents($AltBody,array('encoding'=>Horde_Mime_Part::DEFAULT_ENCODING)); |
| 728 |
|
} |
| 729 |
|
if ($Body && ($text_body = $mailObject->findBody('plain'))) |
| 730 |
|
{ |
| 731 |
|
if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' -> '.$Body); |
|
@@ 729-733 (lines=5) @@
|
| 726 |
|
if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' -> '.$AltBody); |
| 727 |
|
$html_body->setContents($AltBody,array('encoding'=>Horde_Mime_Part::DEFAULT_ENCODING)); |
| 728 |
|
} |
| 729 |
|
if ($Body && ($text_body = $mailObject->findBody('plain'))) |
| 730 |
|
{ |
| 731 |
|
if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' -> '.$Body); |
| 732 |
|
$text_body->setContents($Body,array('encoding'=>Horde_Mime_Part::DEFAULT_ENCODING)); |
| 733 |
|
} |
| 734 |
|
//advanced debugging |
| 735 |
|
// Horde SMTP Class uses utf-8 by default. |
| 736 |
|
//ZLog::Write(LOGLEVEL_DEBUG, "IMAP-SendMail: parsed message: ". print_r($message,1)); |