Office of Information Technology

Forms to send e-mail

I've added a perl script that allows you to set up a form to send email to a particular person. Here's an example of how to use it:

<html>
<head>
<title>Send a message</title>
</head>
<body>

<form method=post action="/cgi-bin/mail.pl">
<input type=hidden name=to value=someones-address@life.illinois.edu>
<P>Your E-Mail address:<br>
<input name=from size=40>
<P>Subject:<br>
<input name=subject size=40>
<P>Message:<br>
<textarea name=body rows=10 cols=60 wrap=virtual></textarea><p>
<input type=submit value="Send Message">
<input type=reset value=Clear><p>
</form>
</body>
</html>

Please keep the To address hidden, so folks can't abuse your form to send out email to whomever they choose. Also, I've set up the mail.pl script to only allow To addresses that end with illinois.edu.


Return to Frequently Asked Questions
help@life.illinois.edu