Loupilo
lundi 31 mai 2004 à 12:00
Carrement plus long, mais ça marchera peut être :
(Dans emailer.php (reprends la 1ere version sans modifs)) :
Chercher
CODE
var $subject, $extra_headers, $address;
Ajouter sous cette ligne :
CODE
var $bcc;
function set_bcc ( $bcc_value = '' )
{
$this->bcc = $bcc_value;
$this->bcc = rtrim($this->bcc);
}
Rechercher :
CODE
function emailer($use_smtp)
{
$this->use_smtp = $use_smtp;
$this->tpl_file = NULL;
$this->address = NULL;
$this->msg = '';
$this->mimeOut = '';
}
Remplacer par
CODE
function emailer($use_smtp)
{
$this->use_smtp = $use_smtp;
$this->tpl_file = NULL;
$this->address = NULL;
$this->msg = '';
$this->mimeOut = '';
$this->bcc = NULL;
}
Rechercher :
CODE
$result = @mail($this->address, $this->subject, $this->msg, $this->extra_headers);
Remplacer par :
CODE
if ( !defined('HOSTEDBY_ONLINE_DOTNET') )
{
$result = @mail($this->address, $this->subject, $this->msg, $this->extra_headers);
}
else
{
if ( 'HOSTEDBY_ONLINE_DOTNET' == FALSE )
{
$result = @mail($this->address, $this->subject, $this->msg, $this->extra_headers);
}
else
{
if ( $this->bcc == NULL )
{
$result = @email("webmaster",$this->address, $this->subject, $this->msg );
}
else
{
$this->address = rtrim($this->address);
if ( strcmp($this->address,'') == 0 ) { $this->address = '@'; }
$result = @email("webmaster",$this->address, $this->subject, $this->msg , "webmaster" , $this->bcc );
}
}
}
Vraiment plus long, mais ça vaut le coup de tenter

Bonne chance, bon après-midi

++