With special thanks to Dan Graf, dgraf@midcoast.com, we have a simple, easy to use CGI program to allow people who visit a webpage to fill out a form and send the owner or author comments. Works pretty nice.

Important Files:

From2Mail - Example


<HTML>
<HEAD>
<TITLE>Feedback on my web page</TITLE>
</HEAD>
<BODY>
What do you think of my page?<BR>

<FORM METHOD="post" ACTION="/cgi-bin/form2mail.cgi"> (NOTE: For Domain Lite Users Only)

<FORM METHOD="post" ACTION="/cgi-bin/system/form2mail.cgi"> (NOTE: For Domain Basic/Virtual Users Only)

<!-- This is the place to send the mail to: most often this is your email address. However in some cases you may want to send mail to someone else's address -->

<INPUT TYPE="HIDDEN" NAME="mailto" VALUE="yourusername@yourdomain.com">

<!-- This is the subject, which will be on the email message that is sent to the address in the field above. -->

<INPUT TYPE="HIDDEN" NAME="subject" VALUE="User Feedback on my page">

<!-- This is the subject line which will appear on the mail message that is sent to you. -->

<INPUT TYPE="HIDDEN" NAME="reroute" VALUE="HTTP://www.midcoast.com/~username/postdone.html">

<!-- This is the page to go to after the post has been preformed. After the form is submitted, the contents of the page specified here will be loaded into the users browser. -->

<!-- Here you begin entering all the fields that you want to be sent in the email message -->

<INPUT TYPE="TEXT" NAME="COMMENT">

<INPUT TYPE="TEXT" NAME="NAME">

<INPUT TYPE="submit" value="Send Comment">

</FORM>