I used this code from PHPrunner 5.2 Manual__
global $dal;
//select emails from Users table
$tblUsers = $dal->Table("UsersTableName");
$rs = $tblUsers->QueryAll();
while ($data = db_fetch_array($rs))
{
$email.=$data["EmailAddress"].", ";
$from="admin@test.com";
$msg="Check what's hot this season";
$subject="Monthly newsletter";
$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));
if(!$ret["mailed"])
echo $ret["message"]."
";
}
But It is not working
This is the error code i got****
Fatal error: Call to a member function on a non-object in /homepages/16/d227498675/htdocs/Jesus/joomtop/topbase/include/TopStore_events.php on line 28
Please help me
Thanks