How to set up FormMail Print

  • 0

Here is a walk through on setting up the NMS FormMail script. ou will need to 

Steps for setting up FormMail using NMS FormMail script (formmail.cgi):

  1. Download the NMS FormMail script. Make sure to download the "compat" version.
  2. Un-compress the downloaded file to your computer.
  3. Open the (or formmail.cgi) file with Notepad. (NOTE: Don't use MS Word as that will alter the formating and break the script code)
  4. and upload the (or formmail.cgi) script to your cgi-bin directory.
  5. Under the "USER CONFIGURATION SECTION", we will need to change a few variables for the script to work properly.
  6. The first variable we need to change is the @referers variable. Replace everything inside of the parentheses with your domain, once without the www and then a single space and again with the www. You will need to do this for each domain that you will be sending from. Remember, only one space between each url like so: (Replace the part highlighted in yellow)

    @referers = qw(;
  7. The second variable we need to change is the @allow_mail_to variable. Enter a valid email address that the forms will send to. Again, only one space between multiple email addresses. Also, make sure you remove 'localhost' from both the @referers and the@allow_mail_to lines. Remember, only one space between each url like so: (Replace the part highlighted in yellow)

    @allow_mail_to = qw(you@your.domain;
  8. Once you made the above two changes, save the file and upload it to your website either via a FTP client or through BEZA.NET Control Panel built-in FTP client called Webshell.
  9. Set permission on the (or formmail.cgi) to 755 to allow the script to be executed. This can be down via webshell or through a FTP client.
  10. Next, you need to link the (or formmail.cgi) to your web form by adding the following html tag to your contact us page. Make sure the action points to the correct location on the web server where the script was uploaded. The following is an example.

    <form action="/cgi-bin/formmail/formmail.cgi" method="post" >
If you have any questions or run into any issues, please feel free to open a support ticket and one of our support staff will assist you further.

Was this answer helpful?

« Back