First of all thank you very much for your reply.
That said, I am not sure how to "output something to the browser with regular intervals". I tried moving my html "sucess" echo before the mailing starts, but the browser is waiting until the mail is finished before printing the html. I was surprised at this, since I thought the browser would go ahead and print the html, then the mail would run in the background.
//my pseudocode
//print success html page
//send mail
I was surprised the html did not print until the mail was completed. Any ideas?