Carnegie Mellon University Website Home Page
 

Sending Email From a Web Form

Web forms can be used to conduct surveys or submit ideas in a format that you develop. To use a form on your web page you will need to use the MailTo CGI. The MailTo CGI is a "script" that exists on the BOTH the www.cmu.edu and the andrew.cmu.edu servers and is used to:

  • Send the from results to a specified cmu.edu email address
  • Display a response page to the user when the form is submitted

Through examples, this document walks you through the process of creating a simple web form.

Note: The MailTo CGI is located on the www.cmu.edu server and on the www.andrew.cmu.edu server. The MailTo CGI is supported by Computing Services only when used to send mail from forms located on those servers.  The MailTo CGI script is intended only for web sites associated with Carnegie Mellon.  In addition, the script will only send mail to cmu.edu email addresses.  Non-cmu.edu addresses must first be approved.  See the Add Approved Email Addresses section for more information.

Last Updated: 5/18/09