Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]system mailingowy
rybenia
post 15.04.2009, 14:05:02
Post #1





Grupa: Zarejestrowani
Postów: 112
Pomógł: 0
Dołączył: 5.04.2008

Ostrzeżenie: (10%)
X----


Witam, mógby mi ktoś zobaczyć na mój system ponieważ nie tworzy mi hiperłączy i nie wyświetla obrazków.



  1. <?php error_reporting(E_ALL | E_USER_WARNING);
  2. $headers  = "MIME-Version: 1.0\n";
  3. $headers .= "Content-type: text/html; charset=iso-8859-2\n";
  4. $headers .= "Content-Transfer-Encoding: quoted-printable\n";
  5. $file_name = $_GET['plik'].".txt";
  6. $twoj_mail = $_GET['twoj_mail'];
  7. $file = fopen($file_name, 'r');
  8. $topic = $_GET['topic'];
  9. $text = $_GET['text'];
  10. $i=0;
  11. $max_mails = 100000;
  12. while(!feof($file) && $i <= $max_mails){
  13. $i++;
  14. $file_read = fgets($file);
  15. $file_read = trim($file_read);
  16. $mail = mail($file_read, $topic, $text, $headers);
  17. if($mail){
  18. echo $i.' - mail wyslany: '.$file_read.'!<br />';
  19. } else {
  20. echo $i.' - blad podczas wysylania maila na adres: '.$file_read.'<br />';
  21. }
  22. }
  23. ?>


Pozdrawiam
Go to the top of the page
+Quote Post

Posty w temacie


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: 14.08.2025 - 09:47