示例#1
0
 /**
  * Prepare body string from message
  *
  * @param  Message $message
  * @return string
  */
 protected function prepareBody(Message $message)
 {
     return $message->getBodyText();
 }
示例#2
0
 /**
  * Prepare the body string
  *
  * @param  \Zend\Mail\Message $message
  * @return string
  */
 protected function prepareBody(Mail\Message $message)
 {
     if (!$this->isWindowsOs()) {
         // *nix platforms can simply return the body text
         return $message->getBodyText();
     }
     // On windows, lines beginning with a full stop need to be fixed
     $text = $message->getBodyText();
     $text = str_replace("\n.", "\n..", $text);
     return $text;
 }