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
Pergunta
Huntress
código asp
<%
Dim nome, email, fone,assunto, mensagem
nome = Request("nome")
email = Request("email")
fone = Request("fone")
assunto = Request("assunto")
curso = Request("curso")
msg = Request("msg")
corpo = corpo & "<b>Nome :</b>" &" " & nome & "<BR>"
corpo = corpo & "<b>E-mail :</b>" &" " & email & "<BR>"
corpo = corpo & "<b>Telefone :</b>" &" " & fone & "<BR>"
corpo = corpo & "<b>Assunto :</b>" &" " & assunto & "<BR>"
corpo = corpo & "<b>curso :</b>" &" " & curso & "<BR>"
corpo = corpo & "<b>Mensagem :</b>" &" " & msg & "<BR>"
Set iMail = Server.CreateObject("Persits.MailSender")
iMail.Host = "mail.site.com.br"
iMail.IsHtml = true
iMail.From = email
iMail.AddAddress "teachers@site.com.br"
iMail.Subject = "Contato Atraves do Site"
iMail.Body = corpo
iMail.Send
response.redirect "http://www.site.com.br"
Set objMail = nothing
%>
<title></title>
<BR>
<BR><BR><BR>
<center>
</center>
Formulário
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Shine Idiomas - Inglês, Espanhol e Italiano</title>
<link href="estilo.css" rel="stylesheet" type="text/css" />
</head>
<body class="formbody">
<form id="form1" name="form1" method="post" action="envia_contato1.asp">
<table border="0" cellpadding="2" cellspacing="2">
<tr>
<td class="camp1">Nome:</td><td class="camp2"><input name="nome" type="text" size="30" maxlength="50" /></td>
</tr>
<tr>
<td class="camp1">Email:</td><td class="camp2"><input name="email" type="text" size="30" maxlength="50" /></td>
</tr>
<tr>
<td class="camp1">Telefone:</td>
<td class="camp2"><input name="fone" type="text" size="30" maxlength="50" /></td>
</tr>
<tr>
<td class="camp1">Assunto</td><td class="camp2"><input name="assunto" type="text" size="30" maxlength="50" /></td>
</tr>
<tr>
<td class="camp1">Curso</td><td class="camp2"><input name="curso" type="text" size="30" maxlength="50" /></td>
</tr>
<tr>
<td valign="top" class="camp1">Mensagem</td>
<td class="camp2"><textarea name="msg" cols="23" rows="6"></textarea></td>
<tr>
<td><input name="enviar" type="submit" value="Enviar" class="btn"/></td><td><input class="btn" name="limpar" type="reset" value="Limpar" />
</table>
</form>
</body>
</html>
ERRO QUE APARECE
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
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.