
Untitled
By: a guest on
May 13th, 2012 | syntax:
None | size: 0.97 KB | hits: 23 | expires: Never
<?php
require 'dbConnect.php';
class dbqueryObject {
set_time_limit(0)
public function __construct($customers,$message)
{
$this->get_queryInfo($customers,$message);
}
public function get_queryInfo($customers,$message)
{
foreach ($customers as $c)
{
$to = $c['email'];
$subject = "test";
$headers = 'test.com' . "\r\n" .
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($c['email'], $subject, $message, $headers);
}
}
}
$customers = dbConnect();
var_dump($customers);
$dbObject = new dbqueryObject($customers,$_POST['message']);
?>