Answer the question
In order to leave comments, you need to log in
Sending emails to site users
I want to write a script to automatically send emails to site users. Can you tell me the best way to do this?
I know that for this reason it is impossible to send one letter to everyone at once. What then, send each user a letter separately, ie. call PHP's mail function for each user?
Answer the question
In order to leave comments, you need to log in
Yes, it is desirable to send a separate letter to each user. In addition, it is better to spread the sending in time. Usually they create a send queue somewhere (for example, in a database) and gradually empty it by sending letters. There are also ready-made solutions like phplist . You can also use external mailing list services, such as WebAsyst .
PS I personally did not use either phplist or WebAsyst, so I can not give feedback on their work. Personally, I have always implemented this functionality through a queue in the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question