[COLOR=”DarkOrange”][B][U]This problem im having about 5 days.
[B]
this is my code…
<?php
include ‘inc.php’;
$potential_client = new PotentialClient();
$potential_client->arrDelExpiredPotentialClients();
chdir(“../docs”);
$r = $potential_client->getmailclientss();
$From = “[email protected]”;
$FromName = “test”;
set_time_limit(1000);
ini_set(“max_input_time”,1000);
ini_set(“memory_limit”,”72M”);
$y = implode(”,file(“1191383828071003.html”)) ;
$x = array_pop($r);
$ii = 0;
while($x != FALSE){
$headers = “MIME-Version: 1.0rn”;
$headers .= “Content-type: text/html; charset=iso-8859-1rn”;
$headers .= “From: $FromName <$From>”;
mail($x->email, “APPOINTMENT LETTER” ,$y , $headers );
echo $x->email.'<br>’;
echo $ii++.'<br>’;
$x = array_pop($r);
}
echo “Operaion completed.”;
?>
[B]and this is ‘inc.php’
<?php
class PotentialClient
{
var $mDbm;
var $email;
var $emailSec;
function PotentialClient()
{
$this->mDbm = new DbManager();
}
function setPotentialclients($email, $emailSec)
{
$this->email = $email;
$this->emailSec = $emailSec;
}
function getmailclientss()
{
$r = “SELECT * FROM potential”;
$result = $this->mDbm->varGetData($r);
$arr = array();
if($result != FALSE)
{
$row = array_pop($result);
while($row != NULL)
{
$a = $this;
$a->setPotentialclients($row[“email”] ,$row[“emailSec”]);
array_push($arr , $a);
$row = array_pop($result);
}
return $arr;
}
else
{
return FALSE;
}
}
}
?>
But the problem is this script halts unexpectedly without displaying any errors.
It only sends about 80 mails. but i need to send more than 600 mails.
PLS HELP!!!!