mysty Posted November 17, 2006 Share Posted November 17, 2006 I have DW802 and use PHP/MySQL database for a site that uses a login system. I would like to be able to send email notes to email addresses from the database. I could make an admin menu with search capabilities, but I am not sure how to then send emails to the ones I select. Any help would be appreciated. Link to comment https://forums.phpfreaks.com/topic/27565-email-from-database-list/ Share on other sites More sharing options...
komquat Posted November 17, 2006 Share Posted November 17, 2006 I use the mail() function to do my sending, you can find information on that <a href="http://www.phpfreaks.com/phpmanual/page/function.mail.html">HERE</a> Link to comment https://forums.phpfreaks.com/topic/27565-email-from-database-list/#findComment-126119 Share on other sites More sharing options...
mysty Posted November 17, 2006 Author Share Posted November 17, 2006 Can you give more details? For example, if I have a page that sorts the list of users down to 11 or 12 users, what code to add or what else is needed to send an email to those 11 or 12 users? Link to comment https://forums.phpfreaks.com/topic/27565-email-from-database-list/#findComment-126306 Share on other sites More sharing options...
fert Posted November 17, 2006 Share Posted November 17, 2006 [code]$emails=array("[email protected]","[email protected]",...);$num=$count($emails);for($count=0;$count<$num,$count++){mail($emails[$count],"Subject","Msg","headers");}[/code] Link to comment https://forums.phpfreaks.com/topic/27565-email-from-database-list/#findComment-126366 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.