smtp_tests.module 347 B

12345678910111213141516
  1. <?php
  2. /**
  3. * @file
  4. * Primary hook implementations for the SMTP test helper module.
  5. */
  6. /**
  7. * Implements hook_mail().
  8. */
  9. function smtp_tests_mail($key, &$message, $params) {
  10. // A very rudimentary test.
  11. if ($key == 'smtp_basic_test') {
  12. $message['subject'] = t('Test email subject');
  13. $message['body'][] = t('Test email body.');
  14. }
  15. }