 |
|
|
|

| Autor |
Nachricht |
Harlekin
phpBB2.de User


Anmeldungsdatum: 16.08.2002
Beiträge: 719
Wohnort: Kassel
|
Verfasst am:
Mi 13 Aug, 2003 17:53 |
  |
Habe soeben phpBB 2.0.5 Plus 1.2 auf 2.0.6 "geupdated"
Hat mit dem Skript vom Stefan einwandfrei funktioniert! DANKE!! |
_________________ Harlekin
 |
|
     |
 |
Google
|
Verfasst am:
|
 |
|
|
 |
Smotko
phpBB2.de User


Anmeldungsdatum: 01.09.2003
Beiträge: 25
Wohnort: Ljubljana, Slovenia
|
Verfasst am:
Mo 01 Sep, 2003 02:46 |
  |
// Sets an email address to send to
function email_address($address, $realname = '')
{
$pos = sizeof($this->addresses['to']);
$this->addresses['to'][$pos]['email'] = trim($address);
$this->addresses['to'][$pos]['name'] = trim($realname);
}
function cc($address, $realname = '')
{
$pos = sizeof($this->addresses['cc']);
$this->addresses['cc'][$pos]['email'] = trim($address);
$this->addresses['cc'][$pos]['name'] = trim($realname);
}
function bcc($address, $realname = '')
{
$pos = sizeof($this->addresses['bcc']);
$this->addresses['bcc'][$pos]['email'] = trim($address);
$this->addresses['bcc'][$pos]['name'] = trim($realname);
}
Well, I didn`t find this in emailer.php as I should...  |
|
|
   |
 |
Smotko
phpBB2.de User


Anmeldungsdatum: 01.09.2003
Beiträge: 25
Wohnort: Ljubljana, Slovenia
|
Verfasst am:
Mo 01 Sep, 2003 02:54 |
  |
And this either...
$to = $cc = $bcc = '';
// Build to, cc and bcc strings
@reset($this->addresses);
while (list($type, $address_ary) = each($this->addresses))
{
@reset($address_ary);
while (list(, $which_ary) = each($address_ary))
{
$$type .= (($$type != '') ? ',' : '') . (($which_ary['name'] != '') ? '"' . $this->encode($which_ary['name']) . '" <' . $which_ary['email'] . '>' : '<' . $which_ary['email'] . '>');
}
}
// 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" . trim($this->extra_headers) . (($cc != '') ? "Cc:$cc\n" : '') . (($bcc != '') ? "Bcc:$bcc\n" : '');
$empty_to_header = ($to == '') ? TRUE : FALSE;
$to = ($to == '') ? (($board_config['sendmail_fix'] && !$this->use_smtp) ? ' ' : 'Undisclosed-recipients:;') : $to;
Is ther even more I won`t found??? |
|
|
   |
 |
Smotko
phpBB2.de User


Anmeldungsdatum: 01.09.2003
Beiträge: 25
Wohnort: Ljubljana, Slovenia
|
Verfasst am:
Mo 01 Sep, 2003 03:02 |
  |
Sorry, it was found. NOTEPAD "find field sucks!!! |
|
|
   |
 |
|
|
|
|
Gehe zu Seite Zurück 1, 2
|
Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum nicht posten Du kannst Dateien in diesem Forum nicht herunterladen
|
|
| |