View Full Version : send email when orderpage is closed

02-20-2007, 11:06 AM
i want to make a bit of code that will work when somebody closes the browser window.

so when somebody leaves my order page by clicking the x in the top corner i want to send them an email asking them why they left or leaving them a discount code to re-order this i think will in creae my sales and hopefully make my site more efficiant.i seem to be losing customers at the order page and think this is a great way to find out please helps guys

in asp and javascript please thanks alot in advance

but they must enter an email address in a page just before the order page so if they leave i have the email to send to.

cheers guys.

Philip M
02-20-2007, 08:22 PM
Well, the reason they quit your page is that they decided that they did not want to submit an order. You can only receive their email address if they submit a form, which is what they clearly do not want to do.

Personally I would not be happy if a firm which I decided I did not want to deal with (for whatever reason) sent me emails.