<pre>
------ Mass Email ------
<?PHP
ini_set 
('max_execution_time'60);

$body "<p>For those that have not been to Gentoo-Portage.com in a while: we have been holding a logo contest.  Over 50 entries were submitted, and 10 finalists have been selected.
We need your help picking a winner in this contest. Every Gentoo-Portage user is allowed to vote and the poll will close on sunday at Midnight EST.</p>

<p>Please login and <a href=\"http://gentoo-portage.com/Contest_Vote\">Vote</a> for your favorite entry.</p>

<p>Thanks in advance for your help in picking out a winner for this contest.</p>

<p>Mike Valstar<br/>
mikevalstar@thrashcorp.com</p>"
;

$body_txt "For those that have not been to Gentoo-Portage.com in a while: we have been holding a logo contest.  Over 50 entries were submitted, and 10 finalists have been selected.
We need your help picking a winner in this contest. Every Gentoo-Portage user is allowed to vote and the poll will close on sunday at Midnight EST.

Please login and vote for your favorite entry.  http://gentoo-portage.com/Contest_Vote

Thanks in advance for your help in picking out a winner for this contest.

Mike Valstar
mikevalstar@thrashcorp.com"
;


// Include the config
require_once('../include/config.inc.php');

$sql "SELECT * FROM `user`";
$results mysql_query($sql) or die(mysql_error());

while(
$row mysql_fetch_assoc($results)){
    
    
$mail = new email();
    
$mail->From "mikevalstar@thrashcorp.com";
    
$mail->Subject "Gentoo-Portage Logo Contest";
    
$mail->Body $body;
    
$mail->AltBody $body_txt;
    
$mail->AddAddress($row['user_email']);
    @
$mail->send();
    echo 
"Sent {$row['user_email']}\n";
}

?>
</pre>