Jump to content

mass email


Recommended Posts

hi all, i am back ;) i need to send mass emails to hundreds of members at the same time using a cron job.i have this script...

$sql = mysql_query("SELECT * FROM members WHERE emailactivated = '0'");while($row = mysql_fetch_array($sql)){$email_add = $row["email"];$to = "$email_add";$from = "admin@mysite.com";$subject = "sign up";$message = '<html><body bgcolor="#FFFFFF">hello</body></html>';$headers = "From: $from\r\n";$headers .= "Content-type: text/html\r\n";mail($to, $subject, $message, $headers);}

will this work?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...