mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
ok, last commit. Please, now everything should work as expected.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4133 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
190eec0f57
commit
bb908c9eae
1 changed files with 2 additions and 3 deletions
|
@ -27,8 +27,7 @@
|
||||||
class emailer
|
class emailer
|
||||||
{
|
{
|
||||||
var $msg, $subject, $extra_headers;
|
var $msg, $subject, $extra_headers;
|
||||||
var $to_addres, $cc_address, $bcc_address;
|
var $addresses, $reply_to, $from;
|
||||||
var $reply_to, $from;
|
|
||||||
var $use_smtp;
|
var $use_smtp;
|
||||||
|
|
||||||
var $tpl_msg = array();
|
var $tpl_msg = array();
|
||||||
|
@ -205,7 +204,7 @@ class emailer
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build header
|
// Build header
|
||||||
$this->extra_headers = (($this->replyto != '') ? "Reply-to: <$this->replyto>\n" : '') . (($this->from != '') ? "From: <$this->from>\n" : "From: <" . $board_config['board_email'] . ">\n") . "Return-Path: <" . $board_config['board_email'] . ">\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . gmdate('D, d M Y H:i:s Z', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . (($cc != '') ? "Cc:$cc\n" : '') . (($bcc != '') ? "Bcc:$bcc\n" : '') . trim($this->extra_headers);
|
$this->extra_headers = (($this->replyto != '') ? "Reply-to: <$this->replyto>\n" : '') . (($this->from != '') ? "From: <$this->from>\n" : "From: <" . $board_config['board_email'] . ">\n") . "Return-Path: <" . $board_config['board_email'] . ">\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . gmdate('D, d M Y H:i:s Z', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . trim($this->extra_headers) . (($cc != '') ? "Cc:$cc\n" : '') . (($bcc != '') ? "Bcc:$bcc\n" : '');
|
||||||
|
|
||||||
$empty_to_header = ($to == '') ? TRUE : FALSE;
|
$empty_to_header = ($to == '') ? TRUE : FALSE;
|
||||||
$to = ($to == '') ? (($board_config['sendmail_fix'] && !$this->use_smtp) ? ' ' : 'Undisclosed-recipients:;') : $to;
|
$to = ($to == '') ? (($board_config['sendmail_fix'] && !$this->use_smtp) ? ' ' : 'Undisclosed-recipients:;') : $to;
|
||||||
|
|
Loading…
Add table
Reference in a new issue