Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 13th, 2012  |  syntax: None  |  size: 0.97 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. require 'dbConnect.php';
  3.  
  4. class dbqueryObject {
  5.         set_time_limit(0)
  6.         public function __construct($customers,$message)
  7.         {
  8.                 $this->get_queryInfo($customers,$message);
  9.         }
  10.  
  11.         public function get_queryInfo($customers,$message)
  12.                 {
  13.                 foreach ($customers as $c)
  14.                         {
  15.                         $to      = $c['email'];
  16.                         $subject = "test";
  17.                         $headers = 'test.com' . "\r\n" .
  18.                         $headers  = 'MIME-Version: 1.0' . "\r\n";
  19.                         $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  20.                         mail($c['email'], $subject, $message, $headers);
  21.                                                 }
  22.                 }
  23.  
  24.         }
  25.         $customers = dbConnect();
  26.         var_dump($customers);
  27.         $dbObject = new dbqueryObject($customers,$_POST['message']);
  28.  
  29.  
  30. ?>