Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1021
  • Last Modified:

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.
1 Solution
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?
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.

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now