Код: Выделить всё
// Build header
$this->extra_headers =(($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') .
(($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") .
"Return-Path: " . $board_config['board_email'] . "\n" .
"Message-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/plain; charset=" . $this->encoding . "\n" .
"Content-transfer-encoding: 8bit\n" .
"Date: " . date('r', time()) . "\n" .
"X-Priority: 3\n" .
"X-MSMail-Priority: Normal\n" .
"X-Mailer: PHP\n" .
"X-MimeOLE: Produced By phpBB2\n" .
$this->extra_headers .
(($to != '') ? "To: $to\n" : '') .
(($cc != '') ? "Cc: $cc\n" : '') .
(($bcc != '') ? "Bcc: $bcc\n" : '');
Вообще очень странно поведение qmail'а - если ему в параметрах передают "получателя", то он сам его в заголовок должен вставить (если его там нет)!
P.S. Надо более подробно изучить файлик includes/functions_post.php - почему там нигде (стр. 750 - 800) не вызывается
emailer->email_address(адрес_получателя)...