Hi,
I have the following code which is meant to send an email to everyone who has subscribed to the mailing list. It works, however every member receives the e-mail twice.
Code below.
$sql = mysql_query("SELECT email FROM cms_users WHERE mailing_list='1'");
$participants = mysql_num_rows($sql);
$fetch = mysql_fetch_array($sql);
foreach($fetch as $to){
mail($to, "$subject", "$body", "FROM: webmaster <webmaster@hiphopreaction.com>");
}