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.
- Enable SSH to your domain.
- From the command prompt, type the following (each command is followed by a hard return):
- cd /home/user (where user is your domain's username)
- vi .FormMail.conf
- 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.
- 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.
The follow are vi commands you may find useful:
- Type i to switch to insert (editing) mode.
- Type o to switch insert mode at the next line below your cursor.
- Type u to undo your last change. Note that this command cannot be used while in insert mode.
- Press Esc to exit insert mode.
- Type :w to save your file.
- Type :wq to save and exit vi.
- To save your entries and exit vi, do the following: Hit the Esc key, type :wq, then hit Enter.
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">