Go to the previous topic.    Go to the next topic.

Using SSH to edit the configuration file

This method is more advanced that the File Manager. It uses a unix command prompt and vi to create the .FormMail.conf file. If you have any problems with this method, please try the above method, or contact support for assistance.

  1. Enable SSH to your domain.
  2. From the command prompt, type the following (each command is followed by a hard return):
  3. If the file already exists, continue to the next step, otherwise, press i to activate insert mode, then paste the configuration file located at the end of this guide. Press Esc then type :1 to go to the first line of the file.
  4. Once at the top of the file, proceed to read the descriptions and become familiar with their purposes. When you come to postmaster and allow_mail_to, you will have to enter the values in between the two lines marking the boundaries of those values. The rest is optional, but very handy.
  5. The follow are vi commands you may find useful:

    The email addresses in the .FormMail.conf allow_mail_to section should match the email addresses in the value field (e.g): <input type="hidden" name="recipient" value="username@example.com, anothername@example.com" />

    Your form's action line should be: <form action="http://domainname.ext/cgi-sys/formmail.pl" method="post">, where domainname.ext is your domain name.

    The above is also true if you would like to use your own secure apache certificate for your forms. The only change is the form action line. The http:// gets replaced with https://. For example, the form action line for a domain specific certificate should be: <form action="https://domainname.ext/cgi-sys/formmail.pl" method="post">