Jump to content

PHP Mass Emailer


TheUnreal

Recommended Posts

Hello. My site has about 15k registered users and I want to send mass mail to all who were inactive for more than a week.

I know how to check if they were online for more than a week, but the problem is how I'm going to send 15k emails without the server to crash?

How I can do it smart without wasting too much resources for 15k emails (that some of them are fake)

Link to comment
Share on other sites

I think how some websites send out mass emails is to send them in batches, like 500 emails at a time. The email script will then pause a minute, then send the next batch of 500. This is most probably handled with a scheduled task/cron job. Doing this should reduce the load on the server.

Link to comment
Share on other sites

You are not going to crash the server by sending 15k emails because you can only queue them and when the queue get's too full, it will simply tell you to calm down and wait for it to catch up.

 

There are however much more important things to worry about, like how the mailserver sees this sudden avalange of email. most likely it wil decide that you have been hacked and block you, or owrse, decide that you are spamming and block you worldwide.

 

Talk to your hoster or google for a massmailing service to do the work for you (they know how to send emails properly)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.