Witam,
Mam pewien problem z moim newsleterem.
Na poczatek moze przedstawie jak to wyglada w kodzie
<?php
public function wyslij()
{
$zap = mysql_query("select * FROM ".PREFIX
."subs_temp order by id_subs_temp desc LIMIT 0,1");
$headers = 'From: '.$info['nadawca']. '<'.$info['mail'].'>' . "rn";
// po ile wywyslac e-maili za jednym razem
$p = 20;
$start = (isset($_GET['start'])) ?
$_GET['start'] : 0;
$temp = mysql_query("select mail from ".PREFIX
."subs order by id_subs");
$zap = mysql_query("select mail from ".PREFIX
."subs order by id_subs LIMIT ".$start.", $p");
{
$mail = mail($dane['mail'], $info['temat'], $info['tresc'], $headers);
if (!$mail)
{
++$blad;
}
else
{
++$wyslano;
}
}
$start = $start + $p;
$b = $_GET['blad'] + $blad;
$w = $_GET['wyslano'] + $wyslano;
if ($start<=$ile)
{
header("location:subs_wiele2.php?start=".$start."&wyslano=".$w."&blad=".$b.""); }
else
{
echo '<b>Pomyslnie wysłano: '.$w.' wiadomosci z '.$ile.'. Błędów: '.$b.'.</b><br><br>'; ; }
}
?>
po uruchomieniu wyskakuja nastepijace bledy
Warning: mail() [function.mail]: Could not execute mail delivery program '/usr/sbin/sendmail -t -i ' in /home/.../skrypt.php on line xxx
po czym pojawia sie statystyka ze wyslano tak srednio 1/3 maili...
prosze o pomoc jak to rozwiazac