Monk3h Posted May 21, 2008 Share Posted May 21, 2008 My sites mailing sysytem works thinke this. When a player sends a mail it inserts it into the mail table in my data base, the players then get to see the mails where the owner is = to there ID. The owners ID is the ID that a player sends the message to. How in PHP would i make a function for Admins to send a mail to every id in the game? Link to comment https://forums.phpfreaks.com/topic/106641-php-in-site-mass-mailing-system/ Share on other sites More sharing options...
DyslexicDog Posted May 21, 2008 Share Posted May 21, 2008 You could change your query to look for the owner id or the special id say... 9999 or whatever you choose. Then as an admin you deliver email to everyone by creating an email with that special id number. The only problem with this solution is once someone deletes it, it's gone for everyone. The other option is to run a sql query to determine what ID's are active on the board and send them an email using using a loop. Of course this could all be done using a stored procedure if you are so inclined. Link to comment https://forums.phpfreaks.com/topic/106641-php-in-site-mass-mailing-system/#findComment-546635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.