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 PROTECTED]>";
    $Assunto = "Assunto do E-mail";
    $Mensagem = $Anuncio;
    For ($Cont=0; $Cont != feof; $Cont++)
        {
            $Destino = $Emails[$Cont];
            mail($Destino,"Assunto",$Mensagem,"From: $Remetente\n");
        }
?>


Reply via email to