NAME

mailform - Mails HTML form input to a specified recipient


DESCRIPTION

This script is designed to be used as a CGI script to convert form input into a readable state, then mail it to the appropriate user.

Two fields are required, ``to'' and ``from'', which are the address to send mail to, and the address that the mail should show as coming from. Optional fields include ``subject'', ``sentmessage'', ``returnurl'', ``returngraphic'', and ``returnmessage''.


EXAMPLE

 <form action="/cgi-bin/mailform" method="post">
 <!-- Required fields -->
 <input type="hidden" name="to" value="you@some.where">
 <input type="text" name="from">
 <!-- Optional fields -->
 <input type="hidden" name="subject" value="Subject of email">
 <input type="hidden" name="sentmessage" value="Message to user">
 <input type="hidden" name="returnurl" value="http://foo/bar/";>
 <input type="hidden" name="returngraphic" value="http://foo/bar.gif";>
 <input type="hidden" name="returnmessage" value="Back to foo...">
 <!-- insert any other form elements here -->
 </form>


BUGS

Using a GET method should work, but hasn't been tested. YMMV. You should be using POST anyway.

The ``showreport'' option of mailback.pl wasn't implemented. It probably should be.


AUTHOR

Steven Pritchard <steve@silug.org>


SEE ALSO

perl(1), CGI(3), Net


NOTES

This program was inspired by (and is somewhat compatible with) mailback.pl by Phillip Moore.