I have an "email sending" in my application (web). The user sends his name, email, subject and some text, and I send an email back to him (with phpmailer). This takes 10 secons (the entire process), but the validation (and response) of the information submitted just takes 2 seconds (using ajax).
¿How I can response in 2 seconds and leave the server sends the email (8 seconds) even if the user refresh the page?
I speak english very bad, sorry.