405 Method not allowed with formmail

We are moving our website from a linuix server to a windows 2003 server.

One of our forms uses formmail, but when it access the file

You can see the form at:$sitepreview/viyachts.com/_forms/availability.php

Enter in an email address.
Click the submit form button.

And you get the error page:
Method Not Allowed
The HTTP verb used to access this page is not allowed.
Who is Participating?
ravs120499Connect With a Mentor Commented:
Well, I get "Bad Referer" when I try the url. But:

What is the mime-type the browser is sending when it posts the form (multipart/form-data, etc.)? You need to make sure  the server is configured to handle the request for that mime type. Mapping file extensions is just a Windows-y shortcut to achieve the same thing.
Are you using IIS?  If so, it might be that it's not configured to allow POST requests.

How to Resolve an HTTP 405 Resource not allowed Error in IIS:
CyberRazz32Author Commented:
I tried the solution, but I still get the same error.
It is a formmail file, so the file type is just file (no extension).
Is there something else I would have to map?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.