FormMail is a very popular script that you can put onto your website so that visitors can fill it out and have their response emailed directly to you. To help you set up FormMail on your website we have wrote a ste-by-step guide to installing and configuring FormMail: If you missed our previous article, please see the How Contact Forms Work tutorial.

1. Download the "compat" version of the NMS FormMail script.

2. Un-zip the downloaded file and upload the script to your cgi-bin folder in your public_html folder.

3. Next you will need to modify the file that was uploaded into your cgi-bin folder. First, you will need to change the @referers line. Replace everything inside of the parentheses with your domain using the same formatting, once without the www and then a single space and again with the www.

4. This is where you input any email addresses that the forms will send to. Make sure you remove localhost from both the @referers and the @allow_mail_to lines.  Once you have made these two changes, save the file.

5. After adding the code to the page that you want the form on, you will need to point the action of the FORM tag to the script inside the cgi-bin folder:

<form action="" method="post">

6. Next, inside of each of your forms you will need to include a few hidden input tags. They are detailed below:

<input type="hidden" name="recipient" value="you@your.domain,me@your.domain" />

This tag tells the form which email address to send the form to. Just make sure that this email is one of the addresses in your @allow_mail_to field

<input type="hidden" name="subject" value="From the feedback form" />

This is a optional tag you can input into your form to specify the subject line of the email that gets delivered to you.

<input type="hidden" name="redirect" value="http://www.your.domain/foo.html" />

This is another optional tag to specify where your users will be redirected to after they click the submit button.

7. Finally in order for FormMail to work you must set the permissions on the to 755.  This can be completed within your File Manager as well by right clicking on the file and selecting "change permissions." For more information on this course please visit Adding Contact Forms.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Datepicker or equivelant and FormMail
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-07-30 10:25 am
I am still learning the system. Just under too much pressure to read slowly and understand.
8,310 Points
2014-08-11 4:19 pm
Hello Gerard,

Thank you for contacting us. We are happy to help you setup your FormMail, is there a step you are having trouble with?

If you have any further questions, feel free to post them below.
Thank you,

n/a Points
2014-08-15 6:17 am

Hi John,


I would like to try this to our company website but I don't understand well how to follow the instructions correctly.

Maybe it can help if you put also the certain line in #3 and #4 instructions to go to, to make it easier.




8,310 Points
2014-08-15 9:11 am
Hello Armand,

Thank you for your suggestion. I have created a ticket for our Support Center team, and we will be reviewing the article.

If you have any further questions, feel free to post them below.
Thank you,


Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

4 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!