The installation will be completed in a few minutes!

Prerequisites

  • Web server that support PHP 7.4 or greater (PHP 8.3 compatible)
  • Ideally, domain-specific email address (info@your-domain.com)
  • HTML editor
  • For Windows, we recommend using Notepad2.
  • For MacOS, we recommend using Brackets.


Step-by-step instructions

  1. Download the file kontaktformular.com.zip from the download page.

  2. Unzip the file kontaktformular.com.zip in a folder on your hard drive.

  3. Open config.php with an HTML editor (we recommend using Notepad2 or Brackets).

  4. Insert your email address between the quotation marks in line 3 and your (company) name in line 5. The exact position is specified in a comment in the file.


  5. Privacy Policy: In line 7, you can enable the checkbox for agreeing to the privacy policy by entering 1 and disable it by entering 0. You can customize the link to the privacy policy in line 9.
    Loading Spinner: You can enable/disable a loading spinner in line 11. The loading spinner is displayed in the submit button.
    Success message: The success message (message after a successful email delivery) can be enabled/disabled in line 13. Alternatively, there is an option to use a (custom) thank you page - see the next option.
    Thank You Page: In line 15, you can customize the link to the Thank You Page. Tip: Display Thank You Page outside of an iFrame
    Spam Protection Options: In lines 22 to 42, you can enable/disable various options (including Honeypot, Click Check, Time Delay, Bad Word Filter). The visible spam protection (security code or security question) can be enabled/disabled in line 22/24.
    Copy to Sender: With this option (line 49), you can specify whether the user should receive a copy only upon consent, generally, or never. Notice: Some hosting providers unfortunately restrict server-side functionality for sending emails to the sender. In this case, this option cannot be used, unfortunately.
    HTML5 error messages: You can enable/disable modern HTML5 error messages in line 51.
    SMTP function (optional): Complete the information in lines 60 to 70.
    File attachment / Upload function (optional): Please complete the information in lines 79 to 96.


  6. Save the config.php file.

  7. Upload all files to your server or web space. Important: Do not alter the directory structure (see image).

  8. Open the file test.php in your browser and enter your email address. (Ideally: info@your-domain.com, as external email providers [e.g., Yahoo, GMX, Gmail, T-Online] are often blocked by hosting providers.) Click on "Send" afterwards. This will test whether PHP function mail() is installed on your server. You should receive a test email within a couple of seconds. For security reasons, delete the test.php file after completing the test. You did not receive an email? Click here!

The contact form is now ready to use!

Open contact.php in your browser.

Read the FAQ for answers to frequently asked questions (layout, technical issues) and any potential error messages.








Integrating the form into your website



There are two ways of inserting the contact form into your website. You can either use an iFrame (very easy, also supports responsive design) or a PHP include command. Embedding the form with an iFrame is the simplest solution. (it also works in WordPress!)

Embed with iFrame


Insert this HTML code into the website where you want the form to appear:

<iframe src="contact.php" style="border: none; width:100%; height:700px;"></iframe>

Note: This iFrame does not yet include automatic height adjustment.
»  Go to iFrame with automatic height adjustment!

  1. Ensure that the path to contact.php is correct. If the file is in a directory (e.g. contact_form), change the path to: "contact_form/contact.php".

  2. Use the "height" attribute to define the height of the iFrame. Alternatively, you can automatically adjust the height as well using this responsive iFrame.
    Info: Use a frame breaker script for the thank-you page if you use the responsive iFrame.

  3. You’re done!



Possible error messages


  1. If after installing the form it does not display a security code, open document_root.php (in the captcha folder) in your browser. You will now see the absolute server path.

  2. In my example, it is: /home/www/

  3. Select the absolute server path and copy it to the clipboard. (right-click with the mouse - copy)

  4. Open captcha.php (in the captcha folder) in the editor and scroll down to line 64. ($ttf = "/Imperator.ttf";)

  5. Important: Insert the absolute server path from the clipboard in front of /imperator.ttf. (right-click with the mouse - insert)

  6. In my example, this would be: $ttf = "/home/www/Imperator.ttf";

  7. The font is not in the root directory (main directory) of your server, so you will have to specify the location in the path.
    If, for example, the contact form is in the contact-form folder, the path needs to look like this: $ttf = "/home/www/contact-form/captcha/Imperator.ttf";
    (You should also remember to insert the captcha folder, as the font is stored in there. ;-) )

  8. Now you should be able to see the security code.




Installation service

Should you have any problems installing or configuring the software, our free installation service is available to you at any time. Use our contact form to let us know and provide your contact information. We will get in touch with you within 24 hours!


Info

This script lets your visitors contact you. The form is sent to the web master by email. The security code fends off spam. As an option, you can also include a field for an email attachment. Do not remove the copyright notice in the footer of the script. If you want to remove it, you will have to purchase a non-copyright license. Please fill out this order form to do so. If you want to use the contact form on a commercial website, please purchase a commercial license. You can also use the same order form to do so. Before downloading, you have agreed to this by accepting the licensing conditions.