How do I install a formmail.pl script? Print
Submit Cancel
Email this article

Close

You are here: Home > Email Support > Form-to-Mail Scripts

The following steps will assist you to install a formmail.pl script:

  1. Construct a feedback form for site visitors to use to send you information.
  2. Use the ‘formmail.pl Script Generator’ to generate the formmail.pl code necessary to enable your feedback form.
  3. Simply copy and paste the formmail.pl code generated (as per the variables you selected) into the source code of the HTML document containing your feedback form.

Here is an explanation of each line appearing in the Standard formmail.pl code:

<form method="post" action="/cgi-sys/formmail.pl>

This calls the formmail.pl file (which already exists on Hetzner servers).

 

<input name="recipient" value=recipient@your-domain.co.za">

Specifies the email address of the recipient at your domain name to whom the results should be sent. Please note that the recipient email address must be an email address on your domain hosted with Hetzner.

 

<input name="subject" value="Form subject" type="hidden">


Defines the Subject Line of the email containing the feedback form results. If this is not specified, the default Subject is “WWW Form Submission”.

<input name="email" type="text">

This field is for the return E-Mail address provided by the visitor filling out the form. This is a required field if the mailbox of the recipient has an Auto-Responder enabled. The email generated by the form will appear to have come from the visitor’s email address, so if you reply, it will go directly to the visitor. If this field is not specified, the default will be ‘nobody@yourdomain.com’ (where ‘yourdomain.com’ is your registered domain with Hetzner).

 

<input type="submit">

The submit button.

<input type="reset">

The button to reset the form.

Enter the following line of additional code near the top of your form in order to enforce ‘required fields’ functionality. (“fieldname” should be substituted with the names of all fields which are mandatory):

 

<input name="required" value="fieldname1,fieldname2" type="hidden">

 

Was this information helpful?

Yes No

Thank you for your feedback
We are delighted to find that our article resolved your query.

Thank you for your feedback
We will resolve your query as soon as possible.

Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.


  Partially resolved    Unresolved
Enter your query here:
Your name:
Your email address:
Contact number:
Customer number or domain name:
 
Preferred contact method: Email     Call me
Please enter the text in the picture below into the text box:
CAPTCHA Image:
ID Number:
 
  • Hosting for Beginners

    Step-by-step guide to hosting with Hetzner.

    VIEW NOW
  • Application Tutorials

    Use our installation guides to get up and running.

    VIEW NOW
  • Login Now

    Our award winning proprietary control panel empowers customers to manage their hosting environment.

    Take the Tour
  • Contact Us

    support@hetzner.co.za

    Phone: 0861-0861-08
    Fax: 0861 0861-09
    Contact Us