function phpmailer_smtp_mail in PHPMailer SMTP 8
Same name and namespace in other branches
- 2.x 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;
}
}