Jump to content

Send email to all users in db


mmarif4u

Recommended Posts

Thanks man i got some point:

Like...

 

$result = mysql_query("SELECT email FROM table");
while ($row = mysql_fetch_array($result)) {
  mail($row['email'], "My Subject", "Amazing news! I have a package for you!", "From: [email protected]");
} 

 

I am trying this and hope it will work.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.