You are here

function phpmailer_smtp_mail in PHPMailer SMTP 2.x

Same name and namespace in other branches
  1. 8 phpmailer_smtp.module \phpmailer_smtp_mail()

Implements hook_mail().

File

./phpmailer_smtp.module, line 28
Uses the PHPMailer library to send emails via SMTP.

Code

function phpmailer_smtp_mail($key, &$message, $params) {
  switch ($key) {
    case 'test':
      $message['subject'] = (string) t('PHPMailer SMTP test email');
      $message['body'][] = (string) t('Your site is properly configured to send emails using the PHPMailer library.');
      break;
  }
}