|
Multi-Recipient Javascript "Mail Me" Form
This is very nice for a company with different depts, etc.
InActive Demo Only
Copy and Paste:
<!-- This goes in the Head of your document -->
<SCRIPT LANGUAGE="JavaScript">
function msg() {
document.e_mail.action = "mailto:"
mailtoandsubject = ((document.e_mail.sendmail.options[document.e_mail.sendmail.selectedIndex].value) + '?subject=' + document.e_mail.subject.value);
}
</SCRIPT>
<!-- This is the Form which goes in the body of your document -->
<FORM NAME="e_mail" METHOD="post" ACTION="" ENCTYPE="text/plain"
onSubmit="(document.e_mail.action += mailtoandsubject)">
<TABLE BORDER=0>
<TR VALIGN="top">
<TD>Recipient:</TD>
<TD><SELECT NAME="sendmail" onChange="msg(this.form)">
<OPTION VALUE="">-- Select --
<OPTION VALUE="your1@address.com">Jody
<OPTION VALUE="your2@email.com">Data
<OPTION VALUE="AndAnother@address.net">Webmaster
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD>Your Name:</TD>
<TD><INPUT TYPE="text" SIZE=25 NAME="name" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Your Email:</TD>
<TD><INPUT TYPE="text" SIZE=25 NAME="email" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Subject:</TD>
<TD><INPUT TYPE="text" SIZE=25 NAME="subject" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Message:<BR>
Please use<BR>
hard returns<BR>
(enter)</TD>
<TD><TEXTAREA NAME="message" COLS=35 ROWS=5 WRAP="physical" OnChange="msg(this.form)"></TEXTAREA></TD>
</TR>
<TR>
<TD> </TD>
<TD><INPUT TYPE="submit" VALUE="Send Message">
<INPUT TYPE="reset" VALUE="Reset"></TD>
</TR>
</TABLE>
</FORM>
|
|