Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/207836-php-email/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/207836-php-email/#findComment-1086509
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.