G
G
Ghost26922018-03-13 11:55:58
Yii
Ghost2692, 2018-03-13 11:55:58

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

2 answer(s)
M
Maxim, 2018-03-13
@Ghost2692

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

P
Pavel Novikov, 2018-03-13
@paulfcdd

see solution here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question