Format a message composed by drupal_mail() prior sending.

Parameters

$message: A message array, as described in hook_mail_alter().

Return value

The formatted $message.

2 methods override MailSystemInterface::format()
DefaultMailSystem::format in modules/system/system.mail.inc
Concatenate and wrap the e-mail body for plain-text mails.
MailTestCase::format in modules/simpletest/tests/mail.test
Concatenate and wrap the e-mail body for plain-text mails.

File

includes/mail.inc, line 313
API functions for processing and sending e-mail.

Class

MailSystemInterface
An interface for pluggable mail back-ends.

Code

public function format(array $message);