You are here

function queue_mail_send in Queue Mail 5

Same name and namespace in other branches
  1. 6 queue_mail.module \queue_mail_send()
  2. 7 queue_mail.module \queue_mail_send()

Real email sending function, called from job queue

1 call to queue_mail_send()
drupal_mail_wrapper in ./queue_mail.inc
Wrapper function to use job queue
1 string reference to 'queue_mail_send'
drupal_mail_wrapper in ./queue_mail.inc
Wrapper function to use job queue

File

./queue_mail.module, line 6

Code

function queue_mail_send($mailkey, $to, $subject, $body, $from = NULL, $headers = array()) {
  $mimeheaders = array();
  foreach ($headers as $name => $value) {
    $mimeheaders[] = $name . ': ' . mime_header_encode($value);
  }
  return mail($to, mime_header_encode($subject), str_replace("\r", '', $body), join("\n", $mimeheaders));
}