function subscriptions_sendmail in Subscriptions 5
1 call to subscriptions_sendmail()
File
- ./
subscriptions.module, line 500
Code
function subscriptions_sendmail($name, $to, $subject, $body, $from, $headers) {
$mail_success = drupal_mail('subscriptions-sendmail', $to, $subject, $body, $from, $headers);
if ($mail_success) {
if (variable_get('subscriptions_watchgood', 1) == 1) {
watchdog('subscriptions', t('subscription notification for ') . '"' . $name . '" <' . $to . '>');
}
}
else {
watchdog('subscriptions', t('error mailing subscription notification: ') . '"' . $name . '" <' . $to . '>', WATCHDOG_ERROR);
}
}