Jump to content
MakeWebGames

mass email 10,000 - 1,000,000 users


Recommended Posts

Posted

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.

Posted

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.

Posted
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
Posted

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.

Posted
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

Posted

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).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...