You are here

queue_mail.module in Queue Mail 5

Same filename and directory in other branches
  1. 8 queue_mail.module
  2. 6 queue_mail.module
  3. 7 queue_mail.module

File

queue_mail.module
View source
<?php

/**
 * Real email sending function, called from job queue
 */
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));
}

Functions

Namesort descending Description
queue_mail_send Real email sending function, called from job queue