title: Run PHP task in the background on IIS
body: <p><strong>Script:</strong> Sending emails
  <strong>Using:</strong> PHPMailer
  <strong>Process:</strong></p>
  
  <ul>
  <li>Submit PHP form</li>
  <li>Send email using PHPMailer and wait for transaction ID back from the sending server</li>
  <li>Insert the transaction ID and log the email in the database</li>
  </ul>
  
  <p>This is all working fine, the only issue is if I have let's say 10, 20 or more emails to send, if each email takes 3-5 seconds to be send while waiting to receive the transaction ID back before continuing the loop then 10 emails are taking close to 1 minute and so on..</p>
  
  <p>I was wondering if there is a way to submit the PHP form using POST the server somehow does its sending job and takes whatever time it needs in the background while the user can continue using the site or even close the page</p>
  
  <p>Thank you</p>