Sim Posted October 26, 2009 Posted October 26, 2009 I need a good/fast way to mail this many users. Currently i have code something like this $headers = "From: MehSite.Com <my email>\n\r"; loop trhough users in DB mail($email, $subject, $message, $headers); end loop this just takes to long. to even mail 30,000 users it takes like 3hours or so. lols. Quote
a_bertrand Posted October 26, 2009 Posted October 26, 2009 You may send an email to yourself with a BCC to many users at the same time, and then it's up to the mail sever to dispatch it. So on your side it will be quick but will not be much faster on the end user. Quote
mdshare Posted October 26, 2009 Posted October 26, 2009 this just takes to long. to even mail 30,000 users it takes like 3hours or so. lols.And 99% will bounce not be send even, webhosts have limits and free e-mail providers changed their acceptance levels, so to play safe you should not send more than 300 mails/hour Quote
Haunted Dawg Posted October 26, 2009 Posted October 26, 2009 Here's a simple way to fix that.. Normaly it would be sure to email 500 email's per half an hour. So do this, make a SQL table containing the mail's, loop through the mail's and limit it by 500. Set a cron onto that script every half an hour and every half an hour 500 email's will be sent, and delete the one's you already sent to, or if you want to keep those user's, mark them as already sent. Quote
Gucci Mane Posted October 27, 2009 Posted October 27, 2009 An easier way would be go to staff panel> add anouncement. Saves a lot of time Quote
Nickson Posted October 27, 2009 Posted October 27, 2009 An easier way would be go to staff panel> add anouncement. Saves a lot of time And where do you get it from that your solution would be an option? Since this is asked in the PHP category and not the "usual mcc" we can't just think it's about something like that, the possibility probably doesn't even exist. @sim: either a mailspool or some program like other have suggested Quote
Vali Posted October 28, 2009 Posted October 28, 2009 You can't just spam 100k users like that... #1 read the php mail function manual (not for mass mailings) #2 chances are your on a shared server, so they only allow a few hundred emails an hour. #3 if just start sending 100k emails at once from a new server, 1% of them will make it to the inbox, 1% to junk folder, and 98% will be blocked. You need to "worm up" the server ip, and up the volume 5% per day. (start at like 1k-2k to be safe). Quote
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.