Skip to main content
Notice removed Authoritative reference needed by CommunityBot
Bounty Ended with no winning answer by CommunityBot
Tweeted twitter.com/StackDrupal/status/982865837240528896
Question Protected by No Sssweat
Notice added Authoritative reference needed by Jonh
Bounty Started worth 50 reputation by Jonh
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Fixed number of grammatical mistakes
Source Link

How to send many email when createdmultiple emails after creating a node

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

How to send many email when created a node

I have problem with send many email when created node. Currently, I'm using smtp to send mail. Time to send a mail about 3-4s.

I'm using hook_node_insert to do this action. But when I need to send about 10 mail, I need waiting about 30-40s to redirect create form to the new node. It's very slow.

I tried use event KernelEvents::TERMINATE like this article, but result is same. So what is the way, can I created node completely, redirect to new page. Finally, I will do action send mail. Hown can do that? Any suggestion.

Note: I don't want create queue and waiting to next run cron to send mail. Because mail need send instantly after created the node

How to send multiple emails after creating a node

I'm using SMTP module to send e-mail messages after creating nodes. It takes about 3-4 seconds to send each such message using hook_node_insert. So if I want to send 10 messages, then I have to wait for 30-40 seconds for the iteration to complete and then only I get redirected to create new node. It's very slow.

I tried use event KernelEvents::TERMINATE per this article, but it did not speed up the whole process.

Is there a way just to complete creating a node without waiting and immediately proceed to creating a new node, while sending e-mail messages at the same time?

Note: I don't want to create queue and wait for the next cron run to send e-mails. Because e-mails need to be sent instantly after creating respective node

Source Link
Jonh
  • 777
  • 9
  • 26

How to send many email when created a node

I have problem with send many email when created node. Currently, I'm using smtp to send mail. Time to send a mail about 3-4s.

I'm using hook_node_insert to do this action. But when I need to send about 10 mail, I need waiting about 30-40s to redirect create form to the new node. It's very slow.

I tried use event KernelEvents::TERMINATE like this article, but result is same. So what is the way, can I created node completely, redirect to new page. Finally, I will do action send mail. Hown can do that? Any suggestion.

Note: I don't want create queue and waiting to next run cron to send mail. Because mail need send instantly after created the node