there is such a problem - I want to create a mailing script for subscribers, and they can potentially be up to 100,000, but then there are two incomprehensible points 1 if you write a stupid script that takes records from the database and sends each letter, the script will not work for so long, 2 hosters set a limit of several thousands of emails per day, and they write that all hosters do this, if all hosters do that, how almost all developed sites send a huge number of emails to all users? for example, freelance sites, the same email, photo-stranger, tempforest and a sea of ​​other sites, who have experience in creating such links, please help with advice

  • If it’s interesting how very large mailings are made (listed by mail.ru, photo-country), then there is a report by Andrei Sáz about how such mailings are made in Badoo. - Arnial
  • How fast do you want to send letters? Will you bypass the limitations of the host? Or is it possible to raise your own server and organize queues there? - cheops

2 answers 2

I think there are two possible options:

  • Raise your application server and throw there the task of sending bundles of letters.
  • Use the service of sending email.

Problems:

  • In the first case, you will encounter the infrastructure in which your application is running. The hoster’s restriction on outgoing emails, the inability to raise its daemon, difficulties in administration, development, etc.
  • The second option in most cases puts a limit on the number per day / month, most likely paid, but it does not need to adminit.

There is already a question for you which option is more acceptable.

    1 if you write a stupid script that takes records from the database and otstravlyaet each letter, because the script will not work so long

    ini_set('max_execution_time',86400 /*1 day*/); 

    2 hosters put a limit of several thousand emails per day, and write that all hosters do this, if all hosters do that, how almost all developed websites send a huge number of emails to all users?

    The developed sites have their own servers, hosters, they use only as a cloud - once a day they calculate something, make backups. And no one limits the less developed sites - if the hosting is given to you by a virtual machine: do what you want, right what you want under the root, set up a mailing list, sign. An example of such a hosting firstvds.ru