How to findout if the file is over

From: Date: Tue, 30 Apr 2002 02:38:56 +0000
Subject: How to findout if the file is over
Groups: php.general 
Request: Send a blank email to php-general+get-95307@lists.php.net to get a copy of this message
I've got the following problem: I'm trying to send a number of messages to a certain number of e-mails, the e-mails are writen in a text file and I need to findout when the file is over. The sample code is under this line , if someone can help me, I'd apreciate it. <?php $Emails = File('emails.txt'); $Remetente = "Nome do remetente <email@dominio.com>"; $Assunto = "Assunto do E-mail"; $Mensagem = $Anuncio; For ($Cont=0; $Cont != feof; $Cont++) { $Destino = $Emails[$Cont]; mail($Destino,"Assunto",$Mensagem,"From: $Remetente\n"); } ?>

« previous php.general (#95307) next »