Email on separate thread in php

后端 未结 2 1662
南方客
南方客 2021-02-19 10:43

I\'m wondering if there is a way to start a separate thread in php to send and email. I have a small web service which takes some information from an iPad app and then inserts d

2条回答
  •  迷失自我
    2021-02-19 11:31

    I believe you want to execute an ob_flush() to send the data back to the client and allow your PHP script to continue executing. Note that you must be done with sending things back to the client, as you can't send any more after the ob_flush().

提交回复
热议问题