This topic is locked

On Edit (Hyperlink)

2/25/2007 7:28:25 PM
ASPRunnerPro General questions
M
Michael7 author

Hi,
I have setup a few pages with AfterEditUpdate email functions.
With a new form I am making I would like to use a Link / Submit Button at the bottom of the View Page that will send the email using the Events code.

This is because i don't want an email sent everytime the page is updated.
There is only ever 2 email addresses it will go to and both are stored in the DB (emiala & emailb) is there a way i could include a checkbox to say which address i want to include in the email as the form should only be sent to emailb on 1 occassion?
Thanks

Michael

Sergey Kornilov admin 2/26/2007

Michael,
I would say this is the task for additional script that needs to be open in popup window where you can enter subject, email body and click Submit.
You only need to pass email addresses to this script via link:

<a href=sendemailscript.asp?emaila={$show_emaila}&emailb={$show_emailb}>Send Email</a>