I set up a form with a hidden "Email submit button" with a default email address.
I placed another visible button on the page and put in the "click" event the following javascript:
> EmailSubmitButton1.resolveNode("#event").submit.target = "mailto:abx@zyd.com";
> EmailSubmitButton1.execEvent("click");
change the "mailto:abx@zyd.com" to whatever you want, as long as it has "mailto:" in front of it, or else it defaults to a HTTP submit.
For example, if you want to set the email address to a value from a drop down list:
> var emailAddress = "mailto:" + DropDownList1.rawValue;
When the user clicks on the visible button, it's sets the email address on the hidden email button and causes a click event on the button - bingo - email sent to a custom email address.
Regards
Anthony Jereley
Indigo Pacific Pty Ltd
www.indigopacific.com