';
$to = $_POST['maillistmhdi'];
$email = explode("\n", $to);
$message = stripslashes($message);
$i = 0;
$count = 1;
while($email[$i]) {
$ok = "ok";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=UTF-8\n";
$headers .= 'From: ' . $from_mail . "\r\n";
if(mail($email[$i], $subject, $message, $headers))
echo "Number: $count ".$email[$i]." Rezult inshallah :D
"; else echo "Number: $count ".$email[$i]." Send ki Zebi :(
"; $i++; $count++; } $count--; if($ok == "ok") echo ""; } ?>
"; else echo "Number: $count ".$email[$i]." Send ki Zebi :(
"; $i++; $count++; } $count--; if($ok == "ok") echo ""; } ?>