You are here

class SimpleMailMailSystem in Simple Mail 7

@file SimpleMailMailSystem class definition.

Hierarchy

Expanded class hierarchy of SimpleMailMailSystem

1 string reference to 'SimpleMailMailSystem'
simple_mail_enable in ./simple_mail.install
Implements hook_enable().

File

includes/SimpleMailMailSystem.inc, line 8
SimpleMailMailSystem class definition.

View source
class SimpleMailMailSystem extends DefaultMailSystem {

  /**
   * Format a message.
   */
  public function format(array $message) {
    $message['body'] = implode("\n\n", $message['body']);
    $message['body'] = drupal_wrap_mail($message['body']);
    return $message;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DefaultMailSystem::mail public function Send an e-mail message, using Drupal variables and default settings. Overrides MailSystemInterface::mail 1
DefaultMailSystem::_isShellSafe protected static function Disallows potentially unsafe shell characters.
SimpleMailMailSystem::format public function Format a message. Overrides DefaultMailSystem::format