AlpineWeb Home
Search: For:   ~ Advanced Search  
  Support Home     Documentation     Knowledgebase     Help Desk     Blog 
Support Home > VPS v1 > Extensions > Tuesday, January 06, 2009

NMS FormMail v 3.05c1


Powered by nms Perl scripts FormMail is a CGI program designed to generate e-mail based on the input from an HTML form.
NOTE: Prior to 13 March, 2002, FormMail for the FreeBSD and Solaris Virtual Server used the source from Matt's Script Archive. This version of FormMail has a number of significant security holes which allow malicious users to relay messages through a vulnerable server.

NMS FormMail is a drop-in replacement for the orignal script which overcomes the security problems associated with FormMail, and is now being provided on the Virtual Servers. We strongly urge anyone using FormMail to switch to the NMS version if they are not already using it.

NMS FormMail was specifically designed to be compatible with the original FormMail script, and should not require you to make any changes to your HTML forms already in use when you switch to the NMS version.

Installation

To install the FormMail CGI on your Virtual Private Server, connect to your server via Telnet or SSH and do the following:
% vinstall formmail
This command installs two files, FormMail.pl and README, into your ~/www/cgi-bin directory.

Usage

Create a form that you would like the contents mailed to some address. The form should include the following field (at the very least):
  • recipient = specifies who mail is sent to
Other optional fields can also be used to enhance the operation of FormMail for you site, for example:
  • subject = specify the subject included in e-mail sent back to you
  • e-mail = allow the user to specify a return e-mail address
  • realname = allow the user to input their real name
  • redirect = URL of page to redirect to instead of echoing form input
  • required = list of field names that are required input (comma delimited)
Several other fields are supported. See the README file for a complete presentation of the supported fields.

For example, the HTML source for your form may look like this:
<form method="POST" action="/cgi-bin/FormMail.pl">
<input type="hidden" name="recipient" 
       value="order@yourdomain.com">
<input type="hidden" name="subject" 
       value="Order Request">
<input type="hidden" name="required" 
       value="realname,e-mail,phone">
Please Enter Your Name:<br>
<input name="realname" size="40">
<p>
Please Enter Your E-mail Address:<br>
<input name="e-mail" size="40">
<p>
Please Enter Your Phone Number:<br>
<input name="phone" size="40">
<p>
.
.
.
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
Examples


Technical Support
° Getting Started Guide
  FreeBSD
° VPS v1 Help
° VPS v2/3 Help
° MPS v2/3 Help
  DNS
° Domain Name Service
° Domain Registration
   
° Help Desk
° Knowledgebase
° Support Policies
° Disclaimer

° AlpineWeb Home
° Compare Hosting Plans
° Network Topology

° Rates & Fees
° Order Center




  Home | Site Map | Customer Backroom Copyright  ©  1997-2009  AlpineWeb Design