common Posted July 15, 2010 Share Posted July 15, 2010 Hi I am working on a email script. Once a week or so i want to send out an newsletter email to people who registered on the website. At the moment the email is sent using a loop - the sending script is executed for each registered user. Now I am not sure if this is a good thing because, say i have 1000 users, this still works (even though it takes some time - especially if the internet connection is slow), but what if I have 10,000 or 20,000 or even more users? Is there some other way to do this, without being detected as spam or so?? Please Help! Thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/207836-php-email/ Share on other sites More sharing options...
premiso Posted July 15, 2010 Share Posted July 15, 2010 If you are serious about news letters for the masses, it would probably be wise to look up "Email Marking" on google and look into a paid service to do this for you. Doing this on one server takes time and can just bog down the mail server. If you are seriously looking into doing this on your server, you can add the emails to be sent to a database and run a cron job every x minutes and send the emails out to x people at a time. So if your server handles 100 emails a minute, you set the cron to send 100 emails every 2 minutes. There are probably scripts out there that do this too, PEAR::Mail maybe one to look at. Quote Link to comment https://forums.phpfreaks.com/topic/207836-php-email/#findComment-1086509 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.