Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> problem z newsletterem, Could not execute mail delivery
prolam
post 5.09.2006, 00:02:31
Post #1





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 7.07.2006

Ostrzeżenie: (0%)
-----


Witam,

Mam pewien problem z moim newsleterem.

Na poczatek moze przedstawie jak to wyglada w kodzie

  1. <?php
  2. public function wyslij()
  3. {
  4.  $zap = mysql_query("select * FROM ".PREFIX."subs_temp order by id_subs_temp desc LIMIT 0,1");
  5.  $info = mysql_fetch_assoc($zap);
  6.  
  7.  $headers = 'From: '.$info['nadawca']. '<'.$info['mail'].'>' . "rn";
  8.  
  9. // po ile wywyslac e-maili za jednym razem
  10. $p = 20;
  11. $start = (isset($_GET['start'])) ? $_GET['start'] : 0;
  12.  
  13. $temp = mysql_query("select mail from ".PREFIX."subs order by id_subs");
  14.  
  15. $ile = mysql_num_rows($temp);
  16.  
  17. $zap = mysql_query("select mail from ".PREFIX."subs order by id_subs LIMIT ".$start.", $p");
  18.  
  19. while ($dane = mysql_fetch_assoc($zap))
  20. {
  21.  $mail = mail($dane['mail'], $info['temat'], $info['tresc'], $headers);
  22.  
  23.  if (!$mail)
  24.  {
  25. ++$blad;
  26.  }
  27.  else
  28.  {
  29. ++$wyslano;
  30.  }
  31.  }
  32.  
  33.  $start = $start + $p;
  34.  $b = $_GET['blad'] + $blad;
  35.  $w = $_GET['wyslano'] + $wyslano;
  36.  
  37.  if ($start<=$ile)
  38.  {
  39. header("location:subs_wiele2.php?start=".$start."&wyslano=".$w."&blad=".$b."");
  40.  }
  41.  else
  42.  {
  43. echo '<b>Pomyslnie wysłano: '.$w.' wiadomosci z '.$ile.'. Błędów: '.$b.'.</b><br><br>';  ;
  44.  }
  45.  
  46. }
  47. ?>


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
Go to the top of the page
+Quote Post
acztery
post 5.09.2006, 00:33:48
Post #2





Grupa: Zarejestrowani
Postów: 945
Pomógł: 7
Dołączył: 15.03.2005
Skąd: katowice

Ostrzeżenie: (0%)
-----


moze wysylaj maile za pomoca smpt bo teraz to tak tego nie robisz

http://xpertmailer.sourceforge.net/DOCUMENTATION/

albo manualu w komentarzach masz mail" title="Zobacz w manualu php" target="_manual
Go to the top of the page
+Quote Post
prolam
post 5.09.2006, 15:31:09
Post #3





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 7.07.2006

Ostrzeżenie: (0%)
-----


dziekuje, pomogles mi bardzo, juz dzila:DDD swoja droga fajna klasa...
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 21.06.2025 - 14:05