Olá, antes de abrir este tópico, li e reli, o tópico aberto por marcelolima. Bom o problema dele, eu não sei se é parecido com o meu, pois não entendo muito de ASP. Li o tópico dele, para ver se consegui solucionar o meu problema mas, não consegui. Bom eu peguei na pagina: http://wmonline.com.br/?palavra=formularios o formulário de CARTOM FOR MAIL 1.0, Só que quando eu coloco ele no serviçor, preecho o form e mando. Guando eu mando ele da o seguinte erro:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Send.AddRecipient'
/contato/default.asp, line 123
E na minha linha 123 tem: Send.AddRecipient nome, email
Eu não sei por que ele esta dando este erro, mas o nome e o email que ele pede esta em outro arquivo asp.
Vou deixar os codigos aqui, pra ver se vocês podem me ajudar:
<%
'Cartom Form Mail 1.0 Beta
'Desenvolvido por Wellington Costa de Almeida
'http://www.mediashock.com.br
'nome do seu site
nome = "Formulario"
'Seu nome
ynome = "marcelo"
'Seu email
email = "marcelo449@hotmail.com"
'Servidor de SMPT
smtp = "endereço do SMPT"
%>
Pergunta
Guest #marcelo#
Olá, antes de abrir este tópico, li e reli, o tópico aberto por marcelolima. Bom o problema dele, eu não sei se é parecido com o meu, pois não entendo muito de ASP. Li o tópico dele, para ver se consegui solucionar o meu problema mas, não consegui. Bom eu peguei na pagina: http://wmonline.com.br/?palavra=formularios o formulário de CARTOM FOR MAIL 1.0, Só que quando eu coloco ele no serviçor, preecho o form e mando. Guando eu mando ele da o seguinte erro:
E na minha linha 123 tem: Send.AddRecipient nome, email
Eu não sei por que ele esta dando este erro, mas o nome e o email que ele pede esta em outro arquivo asp.
Vou deixar os codigos aqui, pra ver se vocês podem me ajudar:
/default.asp tem este codigo:
<center><html> <head> <title>formulario</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="599" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="599" height="57" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="253" height="57" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F8F8"> <!--DWLayoutTable--> <tr> <td width="253" height="57" valign="top"><!--DWLayoutEmptyCell--> </td> </tr> </table></td> <td width="346"><div align="center"><font size="1" face="Verdana">CarlTom Form Mail 1.0<br> Desenvolvido por Wellington Costa de Almeida<br> wellington@mediashock.com.br </font></div></td> </tr> </table></td> </tr> <tr> <td height="378" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F8F8"> <!--DWLayoutTable--> <tr> <td width="599" height="378"><div align="center"><% enviar = Request.Form("enviar") if enviar = "" Then %><form action="default.asp" method="post"> <table width="454" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="129" height="22" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="111" height="22"><font size="2" face="Verdana">Nome:</font></td> </tr> </table></td> <td width="325"><input name="nome" type="text" id="nome" size="30"></td> </tr> <tr> <td height="22" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="111" height="22"><font size="2" face="Verdana">E-Mail:</font></td> </tr> </table></td> <td><input name="email" type="text" id="email" size="30"></td> </tr> <tr> <td height="22" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="111" height="22"><font size="2" face="Verdana">Telefone:</font></td> </tr> </table></td> <td><input name="telefone" type="text" id="telefone" size="30"></td> </tr> <tr> <td height="24" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="111" height="22"><font size="2" face="Verdana">Tipo de Contato:</font></td> </tr> </table></td> <td><select name="tipo" id="tipo"> <option value="elogio" selected>Elogios</option> <option value="Critica">Critica</option> <option value="Sugestão">Sugestão</option> <option value="Publicidade">Publicidade</option> <option value="Parcerias">Parcerias</option> </select></td> </tr> <tr> <td height="24" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="129" height="22"><font size="2" face="Verdana">Contato por Tel:</font></td> </tr> </table></td> <td><select name="ctel" id="ctel"> <option value="Sim" selected>Sim</option> <option value="Não">Não</option> </select></td> </tr> <tr> <td height="138"><font size="2" face="Verdana">Mensagem:</font></td> <td><textarea name="msg" cols="30" rows="8" id="msg"></textarea></td> </tr> <tr> <td height="19" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="454" height="1"><div align="center"> <input name="enviar" type="submit" id="enviar" value="Enviar"> </div></td> </tr> </table></td> </tr> </table> </form> <% else %> <!--#include file="config.asp"--> <% snome = Request.Form("nome") smail = Request.Form("email") telefone = Request.Form("telefone") tipo = Request.Form("tipo") ctel = Request.Form("ctel") msg = Request.Form("msg") Set Send = Server.CreateObject("SMTPsvg.Mailer") Send.FromName = snome Send.FromAddress= smail Send.RemoteHost = smtp Send.AddRecipient nome, email Send.Subject = "Contato de " & snome & " :: formulario." Send.BodyText = "Olá " & ynome & ":" & VBCrLf & VBCrLf & "Você acabou de receber uma mensagem de " & snome & VBCrLf & VBCrLf & "Genero: " & tipo & VBCrLf & VBCrLf& "Memsagem:" & VBCrLf & msg & VBCrLf & VBCrLf & "Contatos por telefone: " & ctel & VBCrLf & "Telefone: " & telefone & VBCrLf & "nome: " & snome & VBCrLf & "email: " & smail & VBCrLf & VBCrLf &"E-mail de contato." Send.SendMail Set Reply = Server.CreateObject("SMTPsvg.Mailer") Reply.FromName = nome Reply.FromAddress= email Reply.RemoteHost = smtp Reply.AddRecipient snome, smail Reply.Subject = "Obrigado por contactar" & snome Reply.BOdyText = "Olá " & snome & " seu email foi enviado com sucesso para o site " & nome & ". Em bréve estaremos entrando em contato" & VBCrLf & VBCrLf & VBCrLf & "formulario" Reply.SendMail %> <strong><font size="3" face="Verdana">Obrigado <font color="#FF0000"> <% =snome%> </font><br> Seu email foi enviado com sucesso.</font></strong> <% end if %></div></td> </tr> </table></td> </tr> </table> <font color="#006699" size="1" face="Verdana">Carlton Form Mail 1.0<br> Powere By Wellington Costa de Almeida - <a href="http://www.mediashock.com.br/">http://www.mediashock.com.br </a></font> </body> </html></center>E o config.asp tem este codigo:Obrigado pela atenção.
Editado por dark0Link para o comentário
Compartilhar em outros sites
10 respostass 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.