Lamez Posted September 18, 2007 Share Posted September 18, 2007 I am not sure on how to go about this, but I want to make a e-mailing system that will e-mail everyone in my database. How would I do this? -Thanks Guys! Link to comment https://forums.phpfreaks.com/topic/69807-e-mailing-system/ Share on other sites More sharing options...
freakstyle Posted September 18, 2007 Share Posted September 18, 2007 you could select * and loop over the users and send an email out for each one. ref: http://us2.php.net/mail or go with a dedicated solution ( we've just jumped ship from to there ourselves ) good luck Link to comment https://forums.phpfreaks.com/topic/69807-e-mailing-system/#findComment-350681 Share on other sites More sharing options...
Lamez Posted September 18, 2007 Author Share Posted September 18, 2007 lol I have over 150+ users, I am not going to e-mail them one at a time -Thanks Though Oh I found this script $query = mysql_query("SELECT email FROM users"); while ($row = mysql_fetch_assoc($query)) { $to = $row['email']; $subject = 'the subject'; $message = 'hello'; $headers = 'From: Lamez' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); } It does not seem to work, what am I doing wrong? Link to comment https://forums.phpfreaks.com/topic/69807-e-mailing-system/#findComment-350682 Share on other sites More sharing options...
Jessica Posted September 18, 2007 Share Posted September 18, 2007 That IS emailing them one at a time. Why don't you look into an existing mass email script Link to comment https://forums.phpfreaks.com/topic/69807-e-mailing-system/#findComment-350685 Share on other sites More sharing options...
Lamez Posted September 18, 2007 Author Share Posted September 18, 2007 Alright, thanks! Link to comment https://forums.phpfreaks.com/topic/69807-e-mailing-system/#findComment-350693 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.