Search our Help Centre
Example: How do I setup my email account
Email this articleClose
Email Setup Guides
These easy to follow guides provide step-by-step instructions on how to setup and troubleshoot your email program, with personalised screenshots providing visual examples to follow. Should you get stuck along the way, our support team are on hand to assist you.View guides
Do you have a suggestion on how we can make our service or product offering even better? Let us know by completing our simple Suggestion Box form.View form
Our award winning proprietary control panel empowers customers to manage their hosting environment.Take the tour
How do I create a cgiemail form?
Creating a cgiemail form on your website that submits information via email to you and your site visitor can be done as described below.
1. Download the cgiemail.zip file in Firefox.
Save it to your computer. When prompted to ‘open with’ or ‘save file’ , save the file to an easily accessible folder on your Personal Computer.
2. Unzip the file.
This creates a folder called cgiemail_zip_0 containing 3 files, namely template.txt, form.html, confirm.htm
3. Personalise the 3 files.
form.html (your web input form) can be edited using Notepad or a similar text editor. There is only one line (see below) in this file that you will need to edit, where you should replace ‘yourdomain.com’ with your domain name, registered with Hetzner.
<input value="http://www.yourdomain.com/confirm.htm" name="success" type="hidden">
The rest of the form code (from this point forward) corresponds to the fields in your template.txt file. These tell users what details to enter on the form. If you add or remove fields, make sure you add or remove an entire line. Any new fields must be included in your template.txt file for it to be included in the email.
New Field Name: <input name="new-field">
template.txt (the template for the email generated by the form) can be edited using Notepad or a similar text editor.
Substitute all instances of ‘firstname.lastname@example.org’ with your company email address and ‘YourCompanyName’ with the name of your company. Do not remove these prompts, only replace them with your details. Do not add extra spaces or characters and do not remove any fields from the email header.
Do not edit ANY information between square brackets eg. [email]. The CC field should contain your email address so you get a copy of the email and the ‘Return-Path’ field should also contain your email address so that any replies to the email return to you. You may wish to change the Subject of the message but please ensure that you do not add or remove ANY extra spaces in the format.
If you wish to add or remove any fields (below the email header), be sure to add or remove the entire line. The following format must be followed to add fields, take care not to add spaces between the lines and ensure that any new fields are referred to in the form.html form.
New Field Name: [insert-new-field]
confirm.htm (your confirmation page) can be edited using Notepad or a similar text editor.
The default message on this page starts with ‘Transaction successful…’
Please amend the wording to suit your needs.
5. Test the form.
Browse to your website under the folder where the files are uploaded, eg. http://yourdomain.co.za/form.html and complete the form. Check to see you receive the emails and that the pages reflect the required information.
Further tips to ensure a successful cgiemail implementation are available in the Help Centre.
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.