We had an issue with e-mail sending on an ASP Intranet and had to come up with a solution to redirect the sending of mail to a PHP page on the client's website. The client's website did not have access to sendmail or any other program that could be used to send out the e-mail messages.
To do this, we had to submit the data to a PHP page using a pop-up window, the only problem this caused was the form stayed on the screen with the entered data after it was submitted, since we used a pop-up window to submit the data.
I was able to solve this problem by adding the following code as an attribute to the form tag:
This then changes the page that contains the form at the same time it is submitting the data to a pop-up page.