[Linux-programlama] mail gönderimi

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: ahmet demir (turkosx@gmail.com)
Date: Mon 31 Jul 2006 - 09:24:55 GMT


$dosya = fopen("dosya.txt", "r");
while (!feof($dosya))
{

$satir= fgets($dosya,50);

$kimden="xxx@deneme.com";
$To =$satir;
$Subject = "hi";

$Body ="vıdı vıdı";
$headers .= "MIME-Version: 1.0 \\r\n <file://r/n>";
$headers .= "Content-type: text/html; charset=UTF-8 \\r\n <file://r/n>";
$headers .= "From: ". $kimden ." <".$kimden. ">\r\n";
@mail($To,$Subject,$Body,$headers);

}
fclose($dosya);

dosyada örnegin 3 adet mail adresi oldugunu dusunun boyle bir kodda sadece
dosyadaki son mail gidiyor ilk iki mail gitmiyor.
echo "$satir<br>"; dedigim zaman 3 mail adresini cok guzel dokuyor ama mail
atmaya gelince tirt sadece en son mail adresini atiyor.
toplam satir sayisini for dongusuyle donguye soktugum zamanda ayni seyi
yapiyor.
Bunun sebebi nedir?

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.