You are here

function mail_debugger_mail in Mail Debugger 7.2

Same name and namespace in other branches
  1. 8 mail_debugger.module \mail_debugger_mail()
  2. 7 mail_debugger.module \mail_debugger_mail()

Implement hook_mail()

Parameters

string $key:

array $message:

array $params:

File

./mail_debugger.module, line 36

Code

function mail_debugger_mail($key, &$message, $params) {
  switch ($key) {
    case 'custom_mail':
      $message['body'] = array(
        $params['body'],
      );
      $message['subject'] = $params['subject'];
      break;
    default:
      break;
  }
}