rofl90 Posted March 31, 2007 Share Posted March 31, 2007 OK i insert the emails and their names so i can do it lik 'Hi {name}, wehave a great new product.. etc' OK but how do i send an email to he all the emails in the rows, using mail()? Link to comment https://forums.phpfreaks.com/topic/45034-mailing-list/ Share on other sites More sharing options...
shocker-z Posted March 31, 2007 Share Posted March 31, 2007 $query = mysql_query("SELECT * FROM table_name"); while ($row=mysql_fetch_array($query)) { mail(); } And that will loop through all data and just use $row['emailaddress'] and $row['name'] to echo the relivant information back. Regards Liam Link to comment https://forums.phpfreaks.com/topic/45034-mailing-list/#findComment-218619 Share on other sites More sharing options...
rofl90 Posted March 31, 2007 Author Share Posted March 31, 2007 Ok thank Link to comment https://forums.phpfreaks.com/topic/45034-mailing-list/#findComment-218621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.