I made a e-mail program for my members and I added a option to send to ALL members. I want to test the code but I don't want to send everyone a million testing messages if this is wrong, could you take a look and giuve me an idea if this will work before I test it. Thanks.
$Query="select user_name from $TableName order by user_name";
$Result=mysql_db_query($DBName,$Query,$Link);
$Result_num=mysql_num_rows($Result);
$headers = "From: My Site<myaddy@yahoo.com>\r\n";
for($i=0;$i<$Result_num;++$i){
$column=mysql_fetch_array($Result);
$user_email = $colum[user_email];
mail($user_email, $subject, $text, $headers);
}
Does that look effective, or willit not work and if thats the case, how can I fix it.
Thanks a lot for your time.