Hallo Inka_i,
ich habs nochmal ne ziemliche Zeit getestet. Der Hase liegt scheinbar woanders im Pfeffer. Vielleicht zaubert einer aber auch noch den Wundercode aus dem Hut.
Das
Erste Beispiel führt dazu das der BOARDNAME angezeigt wird, aber das
*Provideranhängsel hinten angehängt wird (zumindest ist es bei Funpic so) > BOARDNAME@funpic*****.cluster
Ferner hab ich den Code im ersten Beispiel mal aufgesplittet und die Anteile nach und nach unwirksam gemacht
//
.. und, obwohl im ersten Beispiel so wenig übrig blieb, hat es dennoch funktioniert, allerdings mit
*Anhängsel.
Das legt den Verdacht nahe, das das
*Anhängsel an anderer Stelle oder gar Serverseits generiert wird. Dann wäre es nicht zu ändern.
Änderungen jeweils mailer.php
Code: Alles auswählen
//
// The emailer class has support for attaching files, that isn't implemented
// in the 2.0 release but we can probable find some way of using it in a future
// release
//
class emailer
{
var $msg, $subject, $extra_headers;
var $addresses, $reply_to, $from;
var $use_smtp;
var $new_from;
var $tpl_msg = array();
function emailer($use_smtp)
{
$this->reset();
$this->use_smtp = $use_smtp;
$this->new_from = $this->reply_to = $this->from = 'BOARDNAME';
}
// Resets all the data (address, template file, etc etc to default
...............................................
$this->extra_headers =
(($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') .
// (($this->from != '') ? "From: $this->new_from \n" : "From:" . $board_config['board_email'] . "\n")
(($this->from != '') ? "From: $this->new_from\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: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : '')
;
Zweites Beispiel:
So funktioniert es. Ein einfaches "$get".
Allerdings in Klammern
(BOARDNAME)
Wenn die jetzt noch einer "auflösen" kann, bekommt er einen Orden von mir. Aber am Band.
Änderung unten / oberer Teil wieder "zurückgebaut"
Code: Alles auswählen
//
// The emailer class has support for attaching files, that isn't implemented
// in the 2.0 release but we can probable find some way of using it in a future
// release
//
class emailer
{
var $msg, $subject, $extra_headers;
var $addresses, $reply_to, $from;
var $use_smtp;
var $tpl_msg = array();
function emailer($use_smtp)
{
$this->reset();
$this->use_smtp = $use_smtp;
$this->reply_to = $this->from = '';
}
// Resets all the data (address, template file, etc etc to default
.........................................
$this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $get(BOARDNAME)\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: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : '');
lg
4seven