MailSystemInterface::format

7 mail.inc public MailSystemInterface::format(array $message)

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.

File

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

Code

public function format(array $message);

Comments

Drupal_mail no longer does any formatting

In D7 drupal_mail no longer does any formatting before calling the mail function. This function is expected to do 100% of the formatting.

At a minimum please call DefaultMailSystem::format or implement it's methods in your custom Mail System.

Login or register to post comments