Simple.php

Go to the documentation of this file.
00001 <?php
00002 
00031 class Robo47_Mail_Transport_Log_Formatter_Simple implements
00032 Robo47_Mail_Transport_Log_Formatter_Interface
00033 {
00034     
00035     public function format(Zend_Mail $mail)
00036     {
00037         $message = 'Subject: ' . $mail->getSubject() . PHP_EOL;
00038         $message .= 'To: ' . implode(', ', $mail->getRecipients()) . PHP_EOL;
00039         $message .= 'Text: ' . $mail->getBodyText()->getContent() . PHP_EOL;
00040         $message .= PHP_EOL . 'Html: ' . $mail->getBodyHtml()->getContent();
00041         return $message;
00042     }
00043 }