Ir para conteúdo
Fórum Script Brasil
  • 0

Envia Formulário, Mas Sem O Mail.body =


Alemao_web

Pergunta

Bom, estou com o seguinte erro, Preciso enviar um formulário, até ai tudo bem, porém esse e-mail vem sem os dados do Mail.Body =

CODE:

<%

if request("botao") = "enviar" then

Set Mail = Server.CreateObject("Persits.MailSender")

Mail.Host = "fourtrader.com"

Mail.Username = "form@fourtrader.com"

Mail.Password = "form"

Mail.From = Request.form("txtemail")

Mail.FromName = "Contato - Exportador"

Mail.AddAddress "giuga@uol.com.br", "Giuliano"

Mail.Subject = "Contato Web Site - " & Request.form("txtempresa")

Mail.Body = "Produto: " & Request.form("txtproduto") & chr(13) & chr(10) & _

"Para qual país deseja exportar?: " & Request.form("txtpais") & chr(13) & chr(10) & _

"Sua empresa já exportou?: " & Request.form("txtexportou") & chr(13) & chr(10) & _

"Nome da Empresa: " & Request.form("txtempresa") & chr(13) & chr(10) & _

"Contato: " & Request.form("txtcontato") & chr(13) & chr(10) & _

"Telefone: " & Request.form("txtfone") & chr(13) & chr(10) & _

"E-mail: " & Request.form("txtemail") & chr(13) & chr(10) & _

Mail.Send

If Err <> 0 Then

Response.Write "An error occurred: " & Err.Description

Else

strMensagem = "Mensagem Enviada com Sucesso !!!"

End If

End if

%>

_______________________________________________________________

Formulário:

<form name="form1" form action="contact_export.asp" method="post">

<input name="txtproduto" type="text" style="font-family: Arial; font-size: 8pt; background-color: rgb(191,184,191); border: 1px solid rgb(0,0,0)" size="60">

<input name="txtpais" type="text" style="font-family: Arial; font-size: 8pt; background-color: rgb(191,184,191); border: 1px solid rgb(0,0,0)"size="60">

<input name="txtexportou" type="text" style="font-family: Arial; font-size: 8pt; background-color: rgb(191,184,191); border: 1px solid rgb(0,0,0)" size="60">

<input name="txtempresa" type="text" style="font-family: Arial; font-size: 8pt; background-color: rgb(191,184,191); border: 1px solid rgb(0,0,0)" size="40">

<input name="txtcontato" type="text" style="font-family: Arial; font-size: 8pt; background-color: rgb(191,184,191); border: 1px solid rgb(0,0,0)" size="40">

<input name="txtfone" type="text" style="font-family: Arial; font-size: 8pt; background-color: rgb(191,184,191); border: 1px solid rgb(0,0,0)" size="40">

<input name="txtemail" type="text" style="font-family: Arial; font-size: 8pt; background-color: rgb(191,184,191); border: 1px solid rgb(0,0,0)" size="40">

<input type="hidden" name="hidAcao" value="">

<input type="submit" value="enviar" name="botao" style="font-family: Arial; font-size: 10pt; border: 1px solid rgb(0,0,0)">

<input type="reset" name="Submit2" value="Limpar" style="font-family: Arial; font-size: 10pt; border: 1px solid rgb(0,0,0)">

</form>

______________________________________________________________

Bom, agradeço desde já...

VALEUUUUU

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0

não sei se é o mesmo problema mais uma vez tive problema com essa lance de ficar pulando linha

eu tive se fazer assim

mensagem = "testo"

mensagem = & "testo"

algo assim tambem posso esta viajando...

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.


  • Estatísticas dos Fóruns

    • Tópicos
      152k
    • Posts
      651,7k
×
×
  • Criar Novo...