Answer the question
In order to leave comments, you need to log in
How to bulk send email in the background in Yii2?
Hello everyone, I can't figure out how to solve this problem.
I have created a form to create an email message. When you press the send button, email messages are sent to the specified addresses.
The first problem is that you should not close the page until everything is sent, how to make it go in the background?
The second problem is how to make the email sent according to a given schedule?
Thank you all in advance!
Answer the question
In order to leave comments, you need to log in
>The first problem is that you should not close the page until everything is sent
. If there are many addresses to which messages are sent, then the script does not have time to execute.
>The second problem is how to make the email sent according to a given schedule?
For example, you can set cron.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question