Page 1 of 1

want to send email on the click of a button

Posted: Fri Jul 16, 2004 5:16 pm
by nutstretch
I have a site which has a link to go purchase a product. At present, this can only be done by going to another site to buy the product. For my statistical purposes and for general interest I would like the site to nitify me every time someone uses the link as this will give me some kind if insight into the success.

Does anyone know how i can send an email when someone clicks the link button. Do I have to put it into a proceedure? The button at present is not in a from it is just a button to link.

I know how to send an email when using a form and going to another page but not from the page itself. I don't particulary want the user to know an email has been sent so don't want to stray for the page they are on. the link opens up in another window.

Any help appreciated

Angie

Posted: Fri Jul 16, 2004 6:14 pm
by feyd
have the link point to a page which does the email, in the url have the page it's coming from (encoded in some fashion), then redirect back to the sending page with maybe a message that shows up on the page.. The message could be sent via session variables..