public function PostmarkMailSystem::format in Postmark 7
Concatenate and wrap the e-mail body for either plain-text or HTML emails.
Parameters
$message: A message array, as described in hook_mail_alter().
Return value
The formatted $message.
Overrides MailSystemInterface::format
File
- ./
postmark.mail.inc, line 44 - Implements postmark support on behalf of Drupal core.
Class
- PostmarkMailSystem
- Modify the drupal mail system to use smtp when sending emails. Include the option to choose between plain text or HTML
Code
public function format(array $message) {
$this->AllowHtml = TRUE;
$message['body'] = implode("\n\n", $message['body']);
return $message;
}