Hi Chuck
That didn't work for me.
Gave me an 500 internal server error.
So I took OUT .....this part
===============================================
// Find the email address for each moderator
while ( list($Mod) = $dbh -> fetch_array($sth)) {
$Mod_q = addslashes($Mod);
$query = "
SELECT U_Email
FROM w3t_Users
WHERE U_Username = '$Mod_q'
";
$sti = $dbh -> do_query($query);
list($to) = $dbh -> fetch_array($sti);
// Mail the package out
mail("$to","$Subject",$msg,$header);
}
========================================
This worked and just emailed the admin but not the moderator.
So is there something needing changed in that part? lol