You are here

public function SendInBlueMailSystem::format in SendinBlue 7.2

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.

Overrides MailSystemInterface::format

File

includes/sendinblue.mail.inc, line 16
Implements SendInBlue as a Drupal MailSystemInterface.

Class

SendInBlueMailSystem
Modify the Drupal mail system to use SendInBlue when sending e-mails.

Code

public function format(array $message) {

  // Join the body array into one string.
  $message['body'] = implode("\n\n", $message['body']);
  return $message;
}