queue_mail.inc in Queue Mail 5
Same filename and directory in other branches
File
queue_mail.incView source
<?php
/**
* Wrapper function to use job queue
*/
function drupal_mail_wrapper($mailkey, $to, $subject, $body, $from, $headers) {
if (function_exists('job_queue_add')) {
job_queue_add('queue_mail_send', t('Queued email'), array(
$mailkey,
$to,
$subject,
$body,
$from,
$headers,
));
}
else {
// Fallback on regular sending of email, just in case
queue_mail_send($mailkey, $to, $subject, $body, $from, $headers);
}
}
Functions
Name | Description |
---|---|
drupal_mail_wrapper | Wrapper function to use job queue |