queue_mail.module in Queue Mail 5
Same filename and directory in other branches
File
queue_mail.moduleView 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
Name | Description |
---|---|
queue_mail_send | Real email sending function, called from job queue |