You are here

function smtp_tests_mail in SMTP Authentication Support 7.2

Same name and namespace in other branches
  1. 7 tests/smtp_tests.module \smtp_tests_mail()

Implements hook_mail().

File

tests/smtp_tests.module, line 10
Primary hook implementations for the SMTP test helper module.

Code

function smtp_tests_mail($key, &$message, $params) {

  // A very rudimentary test.
  if ($key == 'smtp_basic_test') {
    $message['subject'] = t('Test email subject');
    $message['body'][] = t('Test email body.');
  }
}