I have a php page that updates a record in a database and answer to the client with a json string.
After this I need to send some email with an SMTP connection, this may take a few and i don't want to let the client wait for it. I just want the json answer, than I would like to close connection, flush the output and then start the mail sending. Is it possibile?