/** * 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; }
/** * Prepare body string from message * * @param Message $message * @return string */ protected function prepareBody(Message $message) { return $message->getBodyText(); }