You are here

function smtp_mail in SMTP Authentication Support 7

Same name and namespace in other branches
  1. 8 smtp.module \smtp_mail()
  2. 6 smtp.module \smtp_mail()
  3. 7.2 smtp.module \smtp_mail()

Implements hook_mail().

File

./smtp.module, line 74
Enables Drupal to send e-mail directly to an SMTP server.

Code

function smtp_mail($key, &$message, $params) {
  if ($key == 'smtp-test') {
    $message['subject'] = $params['subject'];
    $message['body'] = $params['body'];
  }
}