

Public Member Functions | |
| format (Zend_Mail $mail) | |
| Format. | |
Definition at line 31 of file Simple.php.
| Robo47_Mail_Transport_Log_Formatter_Simple::format | ( | Zend_Mail $ | ) |
Format.
Formats the Mail into a "logable" Format
| Zend_Mail |
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;
}
1.7.1