Public Member Functions

Robo47_Mail_Transport_Log_Formatter_Simple Class Reference

Inheritance diagram for Robo47_Mail_Transport_Log_Formatter_Simple:
Inheritance graph
[legend]
Collaboration diagram for Robo47_Mail_Transport_Log_Formatter_Simple:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 format (Zend_Mail $mail)
 Format.

Detailed Description

Definition at line 31 of file Simple.php.


Member Function Documentation

Robo47_Mail_Transport_Log_Formatter_Simple::format ( Zend_Mail $  mail  ) 

Format.

Formats the Mail into a "logable" Format

Parameters:
Zend_Mail $mail
Returns:
string

Implements Robo47_Mail_Transport_Log_Formatter_Interface.

Definition at line 35 of file Simple.php.

    {
        $message = 'Subject: ' . $mail->getSubject() . PHP_EOL;
        $message .= 'To: ' . implode(', ', $mail->getRecipients()) . PHP_EOL;
        $message .= 'Text: ' . $mail->getBodyText()->getContent() . PHP_EOL;
        $message .= PHP_EOL . 'Html: ' . $mail->getBodyHtml()->getContent();
        return $message;
    }


The documentation for this class was generated from the following file: