I have problem with send many email when created node. Currently, I'm using smtpSMTP module to send maile-mail messages after creating nodes. Time to send a mailIt takes about 3-4s.
I'm4 seconds to send each such message using hook_node_insert to do this action. But whenSo if I needwant to send about 10 mailmessages, then I need waiting abouthave to wait for 30-40s40 seconds for the iteration to redirect create formcomplete and then only I get redirected to thecreate new node. It's very slow.
I tried use event KernelEvents::TERMINATE likeper this article, but result is same. So what isit did not speed up the whole process.
Is there a way, can I created just to complete creating a node completely, redirectwithout waiting and immediately proceed to creating a new page. Finallynode, I will do action send mail. Hown can do thatwhile sending e-mail messages at the same time? Any suggestion.
Note: I don't want to create queue and waiting towait for the next run cron run to send maile-mails. Because maile-mails need sendto be sent instantly after created thecreating respective node