Hello

I  do have the following problem

I read a file  line by line into an array  I use to email address ( a value
of the line) to email each client with custom information from this file
what I  read into the buffer.

The script is working everything is send the way I wish, the only problem is
that the 200 user would see all 199 useres email addresses  before him ..
and so on each member Member 800 sees 799 emails in the email as well 799
times the from address big problem.

I want to send each email in single loop ?  so that each client gets only
one email address to see and my whole doing is not a security risk

Here is my code I use can somebody help me out to show  me a way where I
prevent the above from happening:

$fp = fopen ("data/default2.users", "r");
while (!feof ($fp)) {
    $buffer = fgets($fp, 4096);
    list ($User, $UserN, $Pass, $Date, $Realf, $RealL, $Email, $Street,
$City, $State, $Postal, $Country, $Phone, $Webaddress, $ex1, $ex2, $ex3,
$ex4, $ex53, $ex7 ) = split ("\|", $buffer);

$myname = "browseabit";
$myemail = "[EMAIL PROTECTED];
$myreplyemail = "[EMAIL PROTECTED]";
$contactname = "$Realf";
$contactemail = "$Email";

$message = "Dear $Realf $RealL <br>  .... ..... message text here";

$subject = "Subject Text here";

$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$myname." <".$myemail.">\r\n";
$headers .= "To: ".$contactname." <".$contactemail.">\r\n";
$headers .= "Reply-To: ".$myname." <$myreplyemail>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Server Text here";

mail($contactemail, $subject, $message, $headers);

echo "<font face=\"Arial\" size=\"1\" color=\"#000000\"> Mail has been send
to $Realf $RealL </font><br>  ";
}
fclose ($fp);



Reply via email to