ciao
siccome sono alle prime armi qualcuno mi può consigliare come risolvere questo problema che ho con il form mail in php?

Ho inserito nella pagina contatti.html un form mail con questo codice:

<form method="post" action="invia.php">
<blockquote>


<font face="Verdana"><font size="2">Nome:

</font>

<input name="name" size="30" maxlength="40" style="font-weight: 700" />
<font size="2">



Email:

</font>

<input name="email" size="30" maxlength="40" style="font-weight: 700" />
<font size="2">



Azienda:

</font>

<input name="subject" size="30" maxlength="40" style="font-weight: 700" />
<font size="2">



Messaggio:</font>
</font>

<textarea name="msg" cols="50" rows="6"></textarea>




<input type="submit" value="Invia" />
</p>
<p class="Stile22"></p>
</blockquote>
</form>

e poi ho creato un documento nella cartella del sito chiamato invia.php con questo codice:

<?php
// inserisci qui il tuo indirizzo email
$receiverMail = "miamail@miamail.it";

// pulizia dei dati inseriti
$name = ltrim(rtrim(strip_tags(stripslashes($_POST['name']))));
$email = ltrim(rtrim(strip_tags(stripslashes($_POST['email']))));
$subject = ltrim(rtrim(strip_tags(stripslashes($_POST['subject']))));
$msg = ltrim(rtrim(strip_tags($_POST['msg'])));

// lettura dell'indirizzo IP
$ip = getenv("REMOTE_ADDR");

// formattazione del messaggio ( \n per le messe a capo )
$msgformat = "Messaggio da: $name ($ip)\nEmail: $email\n\n$msg";

// verifica campi obbligatori
if(empty($name) || empty($email) || empty($subject) || empty($msg)) {
echo "<h3>Il messaggio non è stato inviato</h3>

Compilare tutti i campi obbligatori!</p>";
}
// verifica indirizzo email
elseif(!ereg("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
echo "<h3>Il messaggio non è stato inviato</h3>

L'indirizzo email indicato non è valido!</p>";
}
else {
// invio del messaggio
mail($receiverMail, $subject, $msgformat, "From: $name <$email>");
echo "<h3>Il messaggio e' stato inviato!</h3>

Riceverete una risposta il prima possibile!</p>"; }
?>

E' corrretto oppure c'è qualche errore?

Il fatto è che quando provo a compilare e spedire da l sito il form mi compare questa scritta:

The page cannot be displayed

The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
Please try the following:

Contact the Web site administrator if you believe that this request should be allowed.
Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.



help!!