405 Method not allowed with formmail

Posted on 2007-07-26
Last Modified: 2013-12-20
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/

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.
Question by:CyberRazz32
    LVL 28

    Expert Comment

    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:

    Author Comment

    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?
    LVL 7

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
    I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now