Websites outside of commonSpot on the ecu webserver (personal, student organizations, etc) may use the following script to send information collected through a form on the web to an email account.
Forms that collect information online should NOT ask for sensitive personal information. Violations will be investigated by IT Security and removed from web server.
To use the mailto form, you must include two hidden fields (wwwto & wwwfrom). There is an additional hidden field (wwwgoto) that is not required that specifies the page to be loaded after the mail is sent. If you do not use the wwwgoto field, a message will be displayed stating that the mail was sent. You may want to try both ways to see which one you like better. Note: The variable names in your form can not contain dashes (-). For example, you can use name=email, but not name=e-mail.
The following is an example of the code you need to place in your mailto page. Remember to replace the value of the wwwto & wwwfrom fields with your email address.
Below that is what the code on this page would look like in an HTML document.
Example Code:
<FORM METHOD="POST" ACTION="http://www.ecu.edu/scripts/mailto.cfm" >
<INPUT TYPE="hidden" NAME="wwwto" VALUE="userid@somewhere.ecu.edu" >
<INPUT TYPE="hidden" NAME="wwwfrom" VALUE="userid@somewhere.ecu.edu">
<INPUT TYPE="hidden" NAME="wwwgoto" VALUE="http://www.ecu.edu" >
<P>Your name:<INPUT NAME="name" TYPE="text" SIZE="46" >
<P>Your e-mail address: <INPUT NAME="email" TYPE="text" SIZE="39" >
<P>Your telephone number: <INPUT NAME="phone" TYPE="text" SIZE="39" >
Subject/URL: <INPUT NAME="subject" TYPE="text" SIZE="48" >
<P>Comments:<TEXTAREA NAME="comments" ROWS="6" COLS="73" wrap=physical>
</TEXTAREA>
<P>
<INPUT TYPE="submit" VALUE="Submit" ><INPUT TYPE="reset" VALUE="Reset" >
</FORM>
Example Display:
