I have set up a php function to send email when a button is clicked using isset($_POST['id'])
.
I am receiving the mail correctly but its takes approximately 8 sec to navigate to the next page.
I know it will take a bit of time to login into mail server and sending the mail.
Is there any way to avoid the latency, e.g. by doing it as a background process?