Foros del Web » Creando para Internet » Diseño web »

error enviar formulario

Estas en el tema de error enviar formulario en el foro de Diseño web en Foros del Web. Hola A todos! a ver si alguien me puede sar una ayudita... , hice un formulario html para mi web y estuve toda la noche ...
  #1 (permalink)  
Antiguo 11/09/2006, 23:19
 
Fecha de Ingreso: junio-2006
Mensajes: 9
Antigüedad: 17 años, 9 meses
Puntos: 0
error enviar formulario

Hola A todos!
a ver si alguien me puede sar una ayudita... , hice un formulario html para mi web y estuve toda la noche buscando un archivo php para enviarlo directamente a una direccion de e-mail....no lo conseguí :(, para colmo no tengo idea de php
encontré este formulario con su php en el foro
Código PHP:
<html>

<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<
title>Pagina nueva 1</title>
<
style>
<!--
.
style8 {
    
color#6C6C6C;
    
font-size11px;
    
font-familytahoma;
}
.
style1 {
    
color#6C6C6C;
    
font-familytahoma;
    
font-size11px;
    
font-weightbold;
}
-->
</
style>
</
head>

<
body>

<
table width="100%"  border="0" cellspacing="0" cellpadding="0" id="table1">
              <
tr>
                <
td align="left" valign="top"><div class="style8" style="padding-left:14px; padding-top:12px">
                    
envíenos su comentario.
  </
div>                  <div style="padding-left:14px; padding-top:14px">
                    <
table width="100%"  border="0" cellspacing="0" cellpadding="0" id="table2">
                      <
tr>
                      <
form action="consulta.php" method="post"
                        <
td height="14" colspan="2" align="left" valign="top" class="style1">Nombres:</td>
                      </
tr>
                      <
tr>
                        <
td height="24" colspan="2" align="left" valign="top"><input type="text" name="nombres" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
                      </
tr>
                      <
tr>
                        <
td height="14" colspan="2" align="left" valign="top" class="style1">E-mail:</td>
                      </
tr>
                      <
tr>
                        <
td height="24" colspan="2" align="left" valign="top"><input type="text" name="email" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
                      </
tr>
                      <
tr>
                        <
td height="14" colspan="2" align="left" valign="top" class="style1">Empresa:</td>
                      </
tr>
                      <
tr>
                        <
td height="24" colspan="2" align="left" valign="top"><input type="text" name="empresa" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
                      </
tr>
                      <
tr>
                        <
td height="14" colspan="2" align="left" valign="top" class="style1">Mensaje:</td>
                      </
tr>
                      <
tr>
                        <
td colspan="2" align="left" valign="top"><textarea name="msg" style="height:61px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD; overflow:auto " rows="1" cols="20"></textarea></td>
                      </
tr>
                      <
tr>
                        <
td width="138" height="37" align="left" valign="top">
                          <
p align="center"><FONT face=Arial color=#000000 size=1>

                    
<INPUT type=reset value=Borrar name=Submit>

                  </
FONT></td>
                        <
td width="89" align="left" valign="top"><FONT face=Arial color=#000000 size=1><INPUT type=submit value=Enviar name=Submit2>

                  
</FONT></td>
                      </
tr>
                    </
table>
                    </
div></td>
              </
tr>
            </
table>

</
body>

</
html
Código PHP:
<?php

$mail
='[email protected]';

 
$nombres $_POST['nombres'];
$email $_POST['email'];
$empresa $_POST['empresa'];
$msg $_POST['msg'];

$thank="index.html";

$message "
nombres:"
.$nombres."
email:"
.$email."
empresa:"
.$empresa."
msg:"
.$msg."";
  
  if (
mail($mail,"consulta",$message)) 
       
Header ("Location: $thank");
  
 
?>
y lo probé para ver si funcionaba ...pero en vez de enviar el formulario al e-mail que le asigno a la 2ª linea del php, me lo envía a la carpeta "mail" en el hosting que tengo contratado, diciendome que llegó allí por error¿¿??

no entiendo qué puede estar fallando...qué puedo hacer para que vaya directo a mi e-mail?? gracias de antemano por su ayuda
SAludos !!!
  #2 (permalink)  
Antiguo 12/09/2006, 09:07
 
Fecha de Ingreso: junio-2006
Mensajes: 9
Antigüedad: 17 años, 9 meses
Puntos: 0
este es el mensaje que me devuelve a la carpeta mail/inbox...creen que sea problema del hostin??


From MAILER-DAEMON Tue Sep 12 10:58:24 2006
Return-path: <>
Envelope-to: pá[email protected]
Delivery-date: Tue, 12 Sep 2006 10:58:24 -0400
Received: from mailnull by edwall.dailydns.net with local (Exim 4.52)
id 1GN9iS-0007OU-Ci
for pá[email protected]; Tue, 12 Sep 2006 10:58:24 -0400
X-Failed-Recipients: [email protected]
Auto-Submitted: auto-generated
From: Mail Delivery System
To: [email protected]
Subject: Mail delivery failed: returning message to sender
Message-Id:
Date: Tue, 12 Sep 2006 10:58:24 -0400

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[email protected]
SMTP error from remote mail server after RCPT TO::
host gmail-smtp-in.l.google.com [66.249.83.27]:
550 5.1.1 No such user h34si4964615wxd

------ This is a copy of the message, including all the headers. ------

Return-path:
Received: from pagina by edwall.dailydns.net with local (Exim 4.52)
id 1GN9iO-0007Nu-8c
for [email protected]; Tue, 12 Sep 2006 10:58:20 -0400
To: [email protected]
Subject: consulta
Message-Id:
From: [email protected]
Date: Tue, 12 Sep 2006 10:58:20 -0400


nombres:rodrigo
email:[email protected]
empresa:lllll
msg:hola!


saludos!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:59.